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

Method DisplayName

lib/crontab.go:295–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293}
294
295func (c Crontab) DisplayName() string {
296 if c.IsUserCrontab {
297 if strings.HasPrefix(c.Filename, "user:") {
298 username := strings.TrimPrefix(c.Filename, "user:")
299 return fmt.Sprintf("user \"%s\" crontab", username)
300 }
301 return "user crontab"
302 }
303
304 return c.Filename
305}
306
307func (c Crontab) CanonicalName() string {
308 if c.IsUserCrontab {

Callers 8

CanonicalNameMethod · 0.95
MarshalJSONMethod · 0.95
MarshalJSONMethod · 0.80
processCrontabFunction · 0.80
createNoteFunction · 0.80
createDefaultNameFunction · 0.80
handleGetJobsFunction · 0.80
printListAsTableFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected