Function
getProtocolCommand
(commands []SubprocessProtocolCommand, protocol string)
Source from the content-addressed store, hash-verified
| 30 | ) |
| 31 | |
| 32 | func 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? |
| 43 | func (r *SubprocessPluginRuntime) runGetter(input *Input) (*Output, error) { |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…