feat: 完成基本的 model
This commit is contained in:
@ -26,6 +26,7 @@ func rootCmd(subCmds ...*cobra.Command) *cobra.Command {
|
||||
}
|
||||
|
||||
cmd.PersistentFlags().BoolVar(&opt.Cfg.Debug, "debug", false, "debug mode")
|
||||
cmd.PersistentFlags().StringVar(&opt.Cfg.Name, "name", "utodo", "app name")
|
||||
|
||||
cmd.AddCommand(subCmds...)
|
||||
|
||||
|
Reference in New Issue
Block a user