The Executor interface is an abstraction for carrying out CLI commands. The ExecutionContext provides all the data needed to execute a command. The OutputWriter should be used to output the result of the command. The Logger should be used for providing additional information when running a command.
| 12 | // The OutputWriter should be used to output the result of the command. |
| 13 | // The Logger should be used for providing additional information when running a command. |
| 14 | type Executor interface { |
| 15 | Call(ctx ExecutionContext, writer output.OutputWriter, logger log.Logger) error |
| 16 | } |