MCPcopy Index your code
hub / github.com/devspace-sh/devspace / ExecuteSimpleShellCommand

Function ExecuteSimpleShellCommand

pkg/devspace/pipeline/engine/engine.go:19–31  ·  view source on GitHub ↗
(
	ctx context.Context,
	dir string,
	environ expand.Environ,
	stdout io.Writer,
	stderr io.Writer,
	stdin io.Reader,
	command string,
	args ...string,
)

Source from the content-addressed store, hash-verified

17var replaceVariablesRegEx = regexp.MustCompile(`\$\{[a-zA-Z_.]+?\}`)
18
19func ExecuteSimpleShellCommand(
20 ctx context.Context,
21 dir string,
22 environ expand.Environ,
23 stdout io.Writer,
24 stderr io.Writer,
25 stdin io.Reader,
26 command string,
27 args ...string,
28) error {
29 _, err := ExecutePipelineShellCommand(ctx, command, args, dir, false, stdout, stderr, stdin, environ, basichandler.NewBasicExecHandler())
30 return err
31}
32
33func ExecutePipelineShellCommand(
34 ctx context.Context,

Callers 12

ExecuteMethod · 0.92
execCommandMethod · 0.92
AddHelmDeploymentMethod · 0.92
execCommandFunction · 0.92
ResolveExpressionsFunction · 0.92
executeShellCommandFunction · 0.92
ExecuteCommandFunction · 0.92
TestShellCatFunction · 0.85
TestShellCatErrorFunction · 0.85
TestShellCatEnforceFunction · 0.85
TestKubectlDownloadFunction · 0.85
TestHelmDownloadFunction · 0.85

Calls 2

NewBasicExecHandlerFunction · 0.92

Tested by 5

TestShellCatFunction · 0.68
TestShellCatErrorFunction · 0.68
TestShellCatEnforceFunction · 0.68
TestKubectlDownloadFunction · 0.68
TestHelmDownloadFunction · 0.68