Plugin is the interface that plugins must implement.
| 21 | |
| 22 | // Plugin is the interface that plugins must implement. |
| 23 | type Plugin interface { |
| 24 | // Exec executes a command within the plugin |
| 25 | Exec(ctx context.Context, config PluginExecConfig) (*PluginExecResult, error) |
| 26 | |
| 27 | // GetMetadata returns plugin metadata including commands it provides |
| 28 | GetMetadata(ctx context.Context) (PluginMetadata, error) |
| 29 | } |
| 30 | |
| 31 | type PluginExecResult struct { |
| 32 | Output string |
no outgoing calls
no test coverage detected