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

Function defaultConfigFileDirectory

cmd/root.go:321–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319}
320
321func defaultConfigFileDirectory() string {
322 if runtime.GOOS == "windows" {
323 return fmt.Sprintf("%s\\ProgramData\\Cronitor", os.Getenv("SYSTEMDRIVE"))
324 }
325
326 return "/etc/cronitor"
327}
328
329func truncateString(s string, length int) string {
330 if len(s) <= length {

Callers 5

initConfigFunction · 0.85
configFilePathFunction · 0.85
dash.goFile · 0.85
handleSettingsFunction · 0.85
handleSignupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected