MCPcopy
hub / github.com/containers/toolbox / Run

Function Run

src/pkg/shell/shell.go:30–34  ·  view source on GitHub ↗
(name string, stdin io.Reader, stdout, stderr io.Writer, arg ...string)

Source from the content-addressed store, hash-verified

28)
29
30func Run(name string, stdin io.Reader, stdout, stderr io.Writer, arg ...string) error {
31 ctx := context.Background()
32 err := RunContext(ctx, name, stdin, stdout, stderr, arg...)
33 return err
34}
35
36func RunContext(ctx context.Context, name string, stdin io.Reader, stdout, stderr io.Writer, arg ...string) error {
37 exitCode, err := RunContextWithExitCode(ctx, name, stdin, stdout, stderr, arg...)

Callers

nothing calls this directly

Calls 1

RunContextFunction · 0.85

Tested by

no test coverage detected