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

Function configFilePath

cmd/root.go:450–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

448}
449
450func configFilePath() string {
451 // First check if there's a config file path from viper (which includes env vars and flags)
452 if configPath := viper.GetString(varConfig); len(configPath) > 0 {
453 return configPath
454 }
455
456 // Fall back to default location if no custom path specified
457 return fmt.Sprintf("%s/cronitor.json", defaultConfigFileDirectory())
458}
459
460// parseUsers parses the CRONITOR_USERS config value into a slice of usernames
461func parseUsers() []string {

Callers 3

configure.goFile · 0.85
dash.goFile · 0.85
handleSettingsFunction · 0.85

Calls 1

Tested by

no test coverage detected