// AddCommand add a subcommand.
AddCommand add a subcommand.
// AddCommand add a subcommand .
func (c *Cli) AddCommand(parent, child Command) {
	child.Init(c)
	parentCmd := parent.Cmd()
	childCmd := child.Cmd()
	childCmd.SilenceUsage = true
	childCmd.SilenceErrors = true
	childCmd.PreRun = func(cmd *cobra.Command, args []string) {}
	parentCmd.AddCommand(childCmd)
}
func ( c * Cli ) AddCommand ( parent , child Command ) { child . Init ( c ) parentCmd := parent . Cmd ( ) childCmd := child . Cmd ( ) childCmd . SilenceUsage = true childCmd . SilenceErrors = true childCmd . PreRun = func ( cmd * cobra . Command , args [ ] string ) { } parentCmd . AddCommand ( childCmd ) }
AddCommand add a subcommand.
AddCommand add a subcommand .
// make command error not return command usage and error