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

Function Execute

cmd/root.go:54–58  ·  view source on GitHub ↗

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

()

Source from the content-addressed store, hash-verified

52// Execute adds all child commands to the root command and sets flags appropriately.
53// This is called by main.main(). It only needs to happen once to the rootCmd.
54func Execute() {
55 if err := RootCmd.Execute(); err != nil {
56 fatal(err.Error(), 1)
57 }
58}
59
60var varApiKey = "CRONITOR_API_KEY"
61var varEnv = "CRONITOR_ENV"

Callers 1

mainFunction · 0.92

Calls 2

fatalFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected