Documentation ¶
Overview ¶
Package exec provides helper functions and Actions for executing shell commands.
Index ¶
- func CommandWithOpts(ctx context.Context, opts RunOpts) *exec.Cmd
- func Run(ctx context.Context, opts pipeline.ActionOpts, name string, args ...string) error
- func RunAction(name string, arg ...string) pipeline.Action
- func RunAt(path string, name string, arg ...string) pipeline.Action
- func RunCommand(ctx context.Context, stdout, stderr io.Writer, name string, arg ...string) error
- func RunCommandAt(ctx context.Context, stdout, stderr io.Writer, path string, name string, ...) error
- func RunCommandWithOpts(ctx context.Context, opts RunOpts) error
- type RunOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandWithOpts ¶
CommandWithOpts returns the equivalent *exec.Cmd that matches the RunOpts provided (opts).
func RunAction ¶ added in v0.9.19
RunAction returns an action that runs a given command and set of arguments. The command's stdout and stderr are assigned the systems' stdout/stderr streams.
func RunAt ¶
Run returns an action that runs a given command and set of arguments. The command's stdout and stderr are assigned the systems' stdout/stderr streams.
func RunCommand ¶
RunCommand runs a given command and set of arguments. The command's stdout and stderr are assigned the systems' stdout/stderr streams.
Types ¶
Click to show internal directories.
Click to hide internal directories.