Documentation
¶
Index ¶
Constants ¶
View Source
const ( // BashTaskName is the name of the bash task BashTaskName string = "bash" )
View Source
const ( // ExecTaskName is the name of this file implements ExecTaskName string = "exec" )
View Source
const ( // LibraryName is the name of this task library LibraryName string = "common" )
Variables ¶
This section is empty.
Functions ¶
func MakeBashTask ¶ added in v0.1.18
MakeBashTask converts an exec task spec into an exec task.
Types ¶
type BashInputs ¶ added in v0.1.18
type BashInputs struct {
Script string `json:"script" yaml:"script"`
}
BashInputs contain the name and arguments of the command to be executed.
type BashTask ¶ added in v0.1.18
type BashTask struct {
base.TaskMeta `json:",inline" yaml:",inline"`
With BashInputs `json:"with" yaml:"with"`
}
BashTask encapsulates a command that can be executed.
type ExecInputs ¶
type ExecInputs struct {
Cmd string `json:"cmd" yaml:"cmd"`
Args []interface{} `json:"args,omitempty" yaml:"args,omitempty"`
DisableInterpolation bool `json:"disableInterpolation,omitempty" yaml:"disableInterpolation,omitempty"`
}
ExecInputs contain the name and arguments of the command to be executed.
Click to show internal directories.
Click to hide internal directories.