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

Function effectiveHostname

cmd/root.go:265–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263}
264
265func effectiveHostname() string {
266 if len(viper.GetString(varHostname)) > 0 {
267 return viper.GetString(varHostname)
268 }
269
270 hostname, _ := os.Hostname()
271 return hostname
272}
273
274func effectiveTimezoneLocationName() lib.TimezoneLocationName {
275

Callers 4

configure.goFile · 0.85
sendPingFunction · 0.85
processCrontabFunction · 0.85
handleSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected