Documentation ¶
Overview ¶
Package runner implements method to run commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RealRunner ¶
type RealRunner struct { DryRun bool // contains filtered or unexported fields }
RealRunner runs actual os commands. Tests can define a mocked alternative.
func (*RealRunner) MkdirAll ¶
func (r *RealRunner) MkdirAll(dir string) error
MkdirAll calls MkdirAll.
func (*RealRunner) Run ¶
func (r *RealRunner) Run(ctx context.Context, args []string, in io.Reader, out, err io.Writer, dir string) error
Run runs a command.
func (*RealRunner) WriteFile ¶
func (r *RealRunner) WriteFile(path, contents string) error
WriteFile writes a text file to disk.
Click to show internal directories.
Click to hide internal directories.