MCPcopy
hub / github.com/kubernetes/kubectl / Execute

Method Execute

pkg/cmd/plugin.go:41–41  ·  view source on GitHub ↗

Execute receives an executable's filepath, a slice of arguments, and a slice of environment variables to relay to the executable.

(executablePath string, cmdArgs, environment []string)

Source from the content-addressed store, hash-verified

39 // of arguments, and a slice of environment variables
40 // to relay to the executable.
41 Execute(executablePath string, cmdArgs, environment []string) error
42}
43
44// DefaultPluginHandler implements PluginHandler

Callers 8

HandlePluginCommandFunction · 0.65
HelpFuncMethod · 0.65
UsageFuncMethod · 0.65
RenderMethod · 0.65
TestFuncsFunction · 0.65
TestPlaintextFunction · 0.65

Implementers 2

testPluginHandlerpkg/cmd/cmd_test.go
DefaultPluginHandlerpkg/cmd/plugin.go

Calls

no outgoing calls

Tested by 4

TestFuncsFunction · 0.52
TestPlaintextFunction · 0.52