MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / IsAutoDiscoverCommand

Method IsAutoDiscoverCommand

lib/crontab.go:432–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

430}
431
432func (l Line) IsAutoDiscoverCommand() bool {
433 matched, _ := regexp.MatchString(".+discover[[:space:]]+--auto.*", strings.ToLower(l.CommandToRun))
434 return matched
435}
436
437func (l Line) HasLegacyIntegration() bool {
438 return strings.Contains(l.CommandToRun, "cronitor.io") || strings.Contains(l.CommandToRun, "cronitor.link")

Callers 6

ParseMethod · 0.95
KeyMethod · 0.95
MarshalJSONMethod · 0.95
processCrontabFunction · 0.80
createNoteFunction · 0.80
createDefaultNameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected