MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / Execute

Function Execute

cmd/root.go:30–39  ·  view source on GitHub ↗

Execute is the entry point called from main. Exit code convention: 0 — success / guardrail passed 1 — runtime error (build, auth, network, bad input) 2 — a cost guardrail threshold was breached

()

Source from the content-addressed store, hash-verified

28// 1 — runtime error (build, auth, network, bad input)
29// 2 — a cost guardrail threshold was breached
30func Execute() {
31 if err := rootCmd.Execute(); err != nil {
32 fmt.Fprintln(os.Stderr, err)
33 var breach *guardrailBreachError
34 if errors.As(err, &breach) {
35 os.Exit(2)
36 }
37 os.Exit(1)
38 }
39}
40
41func init() {
42 rootCmd.AddCommand(

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected