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

Function getProtocolCommand

internal/plugin/runtime_subprocess_getter.go:32–40  ·  view source on GitHub ↗
(commands []SubprocessProtocolCommand, protocol string)

Source from the content-addressed store, hash-verified

30)
31
32func getProtocolCommand(commands []SubprocessProtocolCommand, protocol string) *SubprocessProtocolCommand {
33 for _, c := range commands {
34 if slices.Contains(c.Protocols, protocol) {
35 return &c
36 }
37 }
38
39 return nil
40}
41
42// TODO can we replace a lot of this func with RuntimeSubprocess.invokeWithEnv?
43func (r *SubprocessPluginRuntime) runGetter(input *Input) (*Output, error) {

Callers 1

runGetterMethod · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…