CommandRunner is an interface for commands, allowing commands to implement the minimum set of requirements to observe and run the command from above. It is used as a return type to allow passing a usable command to the caller after parsing and creating the command implementation
| 46 | // type to allow passing a usable command to the caller after parsing and creating |
| 47 | // the command implementation |
| 48 | type CommandRunner interface { |
| 49 | // Name gets the name of the Command |
| 50 | Name() string |
| 51 | // Usage gets the usage string for the Command |
| 52 | Usage() string |
| 53 | // Run will run the command and return any errors |
| 54 | Run() error |
| 55 | } |
| 56 | |
| 57 | type command interface { |
| 58 | CommandRunner |
no outgoing calls
no test coverage detected