Documentation
¶
Index ¶
- Constants
- func BuildScript(t *hm.Task) string
- func BuildScriptFile(t *hm.Task) (string, error)
- func Factory(task *hm.Task) (hm.Runner, error)
- func LogFile(t *hm.Task) string
- func ScriptFile(t *hm.Task) string
- func WriteScriptFile(t *hm.Task, script string) error
- type Args
- type Command
- type Executor
- func (x *Executor) AddArgs(args ...string) *Executor
- func (x *Executor) LogTo(filename string) *Executor
- func (x *Executor) Mute() *Executor
- func (x *Executor) MuteErr() *Executor
- func (x *Executor) MuteOut() *Executor
- func (x *Executor) MuteTask() *Executor
- func (x *Executor) Run(sigCh <-chan os.Signal) (err error)
- type Runner
- type Target
Constants ¶
View Source
const (
// ExecDriverName is the name of exec-driver
ExecDriverName = "shell"
)
Variables ¶
This section is empty.
Functions ¶
func BuildScript ¶
BuildScript generates script file according to cmds/script in target
func BuildScriptFile ¶
BuildScriptFile generates the script file using default generated script
Types ¶
type Executor ¶
type Executor struct { Task *hm.Task Cmd *exec.Cmd Console bool Stdout bool Stderr bool LogToTask bool LogFileName string }
Executor wraps over exec.Cmd with output file
Click to show internal directories.
Click to hide internal directories.