()
| 31 | } |
| 32 | |
| 33 | func createCliApp() *cli.App { |
| 34 | cliapp := cli.NewApp() |
| 35 | cliapp.Name = app.AppName |
| 36 | cliapp.Usage = "CLI app testing" |
| 37 | cliapp.Version = version |
| 38 | |
| 39 | cliapp.Commands = []cli.Command{ |
| 40 | createTestCommand(), |
| 41 | createAddCommand(), |
| 42 | } |
| 43 | return cliapp |
| 44 | } |
| 45 | |
| 46 | func createTestCommand() cli.Command { |
| 47 | return cli.Command{ |