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

Method CanonicalName

lib/crontab.go:307–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305}
306
307func (c Crontab) CanonicalName() string {
308 if c.IsUserCrontab {
309 return c.DisplayName()
310 }
311
312 if absoluteCronPath, err := filepath.Abs(c.Filename); err == nil {
313 return absoluteCronPath
314 }
315
316 return c.DisplayName()
317}
318
319func (c Crontab) IsWritable() bool {
320 if c.IsUserCrontab {

Callers 9

MarshalJSONMethod · 0.80
createAutoDiscoverLineFunction · 0.80
processCrontabFunction · 0.80
handleGetJobsFunction · 0.80
handleGetMonitorsFunction · 0.80
handleRunJobFunction · 0.80
handleDeleteJobFunction · 0.80
handlePostJobFunction · 0.80
handlePutJobFunction · 0.80

Calls 1

DisplayNameMethod · 0.95

Tested by

no test coverage detected