MCPcopy Index your code
hub / github.com/helm/helm / Invoke

Method Invoke

internal/plugin/runtime_subprocess.go:99–110  ·  view source on GitHub ↗
(_ context.Context, input *Input)

Source from the content-addressed store, hash-verified

97}
98
99func (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

Callers

nothing calls this directly

Calls 3

runCLIMethod · 0.95
runGetterMethod · 0.95
runPostrendererMethod · 0.95

Tested by

no test coverage detected