How to unit test a Cobra CLI command which requires internal mocks?

后端 未结 0 1275
天命终不由人
天命终不由人 2020-12-01 11:57

I have defined the following Cobra subcommand that I\'d like to test the output for using testify:

var childCmd = &cobra.Command{
    Args:  cobra.Minimum         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题