|
@@ -41,17 +41,7 @@ func Execute() {
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
|
- // Here you will define your flags and configuration settings.
|
|
|
- // Cobra supports persistent flags, which, if defined here,
|
|
|
- // will be global for your application.
|
|
|
-
|
|
|
- // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.tctl.yaml)")
|
|
|
-
|
|
|
- // Cobra also supports local flags, which will only run
|
|
|
- // when this action is called directly.
|
|
|
- rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
|
|
-
|
|
|
- // IMP: Bind subcommands here
|
|
|
+ // Bind subcommands here
|
|
|
rootCmd.AddCommand(network.GetRoot())
|
|
|
rootCmd.AddCommand(context.GetRoot())
|
|
|
rootCmd.AddCommand(keys.GetRoot())
|