MCPcopy Index your code
hub / github.com/devops-rob/target-cli / Execute

Function Execute

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

143// Execute adds all child commands to the root command and sets flags appropriately.
144// This is called by main.main(). It only needs to happen once to the rootCmd.
145func Execute() {
146 if err := rootCmd.Execute(); err != nil {
147 fmt.Println(err)
148 os.Exit(1)
149 }
150 targetdir.TargetHomeCreate()
151}
152
153func init() {
154 cobra.OnInitialize(initConfig)

Callers 1

mainFunction · 0.92

Calls 1

TargetHomeCreateFunction · 0.92

Tested by

no test coverage detected