Function
ExecuteSimpleShellCommand
(
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
| 17 | var replaceVariablesRegEx = regexp.MustCompile(`\$\{[a-zA-Z_.]+?\}`) |
| 18 | |
| 19 | func 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 | |
| 33 | func ExecutePipelineShellCommand( |
| 34 | ctx context.Context, |