MCPcopy
hub / github.com/sniptt-official/ots / Execute

Function Execute

cmd/root.go:41–46  ·  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.

(ctx context.Context)

Source from the content-addressed store, hash-verified

39// Execute adds all child commands to the root command and sets flags appropriately.
40// This is called by main.main(). It only needs to happen once to the rootCmd.
41func Execute(ctx context.Context) {
42 if err := rootCmd.ExecuteContext(ctx); err != nil {
43 fmt.Fprintf(os.Stderr, "Error: %v\n", err)
44 os.Exit(1)
45 }
46}
47
48func init() {
49 cobra.OnInitialize(initConfig)

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected