Documentation
¶
Index ¶
Constants ¶
View Source
const ShellToUse = "bash"
ShellToUse bash shell
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExec ¶
type CommandExec struct {
}
CommandExec object
func (CommandExec) Exec ¶
func (ce CommandExec) Exec(command string) (*CommandResult, error)
Exec execute shell command #nosec
type CommandResult ¶
CommandResult return data
type Executor ¶
type Executor interface {
Exec(command string) (*CommandResult, error)
}
Executor defines the interface for shell command executor exec.go
Click to show internal directories.
Click to hide internal directories.