MCPcopy Create free account
hub / github.com/devfullcycle/goexpert / init

Function init

16-CLI/cmd/root.go:55–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func init() {
56 // Here you will define your flags and configuration settings.
57 // Cobra supports persistent flags, which, if defined here,
58 // will be global for your application.
59
60 // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.16-CLI.yaml)")
61
62 // Cobra also supports local flags, which will only run
63 // when this action is called directly.
64 rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
65}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected