CommandPlugin is the interface plugin commands need to implement so they can be integrated with the CLI. The Command() operation defines the metadata for the command. The Execute() operation is invoked when the user runs the CLI command.
| 15 | // The Command() operation defines the metadata for the command. |
| 16 | // The Execute() operation is invoked when the user runs the CLI command. |
| 17 | type CommandPlugin interface { |
| 18 | Command() Command |
| 19 | Execute(ctx ExecutionContext, writer output.OutputWriter, logger log.Logger) error |
| 20 | } |
no outgoing calls
no test coverage detected