Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogWriter io.Writer
DefaultLogWriter default logging driver to write stdout.
View Source
var Env []string
Env - global list of environment variables.
Functions ¶
This section is empty.
Types ¶
type BashRunner ¶
type BashRunner struct { Env []string Timeout time.Duration LogLabels []string // contains filtered or unexported fields }
BashRunner - runs shell commands.
func NewBashRunner ¶
func NewBashRunner(workingDir string, envVariables ...string) (*BashRunner, error)
NewBashRunner - create new bash runner.
func (*BashRunner) RunMutely ¶
RunMutely - exec command and hide secrets in output. Return command output and errors output.
func (*BashRunner) RunWithTty ¶
func (b *BashRunner) RunWithTty(command string) error
Click to show internal directories.
Click to hide internal directories.