Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface {
Run(runner *CommandRunner, args ...string) error
}
type CommandRunner ¶
type CommandRunner struct { C *conf.FakeshellConfig Env *EnvMap TempEnv *EnvMap RootFS afero.Fs Stdin io.Reader Stdout io.Writer Stderr io.Writer }
func NewCommandRunner ¶
func NewCommandRunner(c *conf.FakeshellConfig) *CommandRunner
func (*CommandRunner) GetEnv ¶
func (r *CommandRunner) GetEnv(key string) string
func (*CommandRunner) GetEnvs ¶
func (r *CommandRunner) GetEnvs() []EnvPair
func (*CommandRunner) Run ¶
func (r *CommandRunner) Run(cmdPar *parser.Command, cmdOp Command) error
func (*CommandRunner) SetEnv ¶
func (r *CommandRunner) SetEnv(key, value string)
func (*CommandRunner) UnsetEnv ¶
func (r *CommandRunner) UnsetEnv(key string)
Click to show internal directories.
Click to hide internal directories.