(_ context.Context, input *Input)
| 97 | } |
| 98 | |
| 99 | func (r *SubprocessPluginRuntime) Invoke(_ context.Context, input *Input) (*Output, error) { |
| 100 | switch input.Message.(type) { |
| 101 | case schema.InputMessageCLIV1: |
| 102 | return r.runCLI(input) |
| 103 | case schema.InputMessageGetterV1: |
| 104 | return r.runGetter(input) |
| 105 | case schema.InputMessagePostRendererV1: |
| 106 | return r.runPostrenderer(input) |
| 107 | default: |
| 108 | return nil, fmt.Errorf("unsupported subprocess plugin type %q", r.metadata.Type) |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | // InvokeWithEnv executes a plugin command with custom environment and I/O streams |
| 113 | // This method allows execution with different command/args than the plugin's default |
nothing calls this directly
no test coverage detected