MCPcopy Create free account
hub / github.com/encoder-run/operator / Execute

Function Execute

cmd/cli/cmd/root.go:35–40  ·  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

33// Execute adds all child commands to the root command and sets flags appropriately.
34// This is called by main.main(). It only needs to happen once to the rootCmd.
35func Execute() {
36 err := rootCmd.Execute()
37 if err != nil {
38 os.Exit(1)
39 }
40}
41
42func init() {
43 cobra.OnInitialize(initConfig)

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected