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

Function createNote

cmd/discover.go:572–578  ·  view source on GitHub ↗
(line *lib.Line, crontab *lib.Crontab)

Source from the content-addressed store, hash-verified

570}
571
572func createNote(line *lib.Line, crontab *lib.Crontab) string {
573 if line.IsAutoDiscoverCommand() {
574 return fmt.Sprintf("Watching for schedule changes and new entries in %s", crontab.DisplayName())
575 }
576
577 return fmt.Sprintf("Discovered in %s L%d", crontab.DisplayName(), line.LineNumber)
578}
579
580func createDefaultName(line *lib.Line, crontab *lib.Crontab, effectiveHostname string, excludeFromName []string, allNameCandidates map[string]bool) string {
581 excludeFromName = append(excludeFromName, "2>&1")

Callers 1

processCrontabFunction · 0.85

Calls 2

IsAutoDiscoverCommandMethod · 0.80
DisplayNameMethod · 0.80

Tested by

no test coverage detected