Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrTaskNotExist ¶
Types ¶
type ErrTaskNotExist ¶
type ErrTaskNotExist struct {
TaskName string
}
func (ErrTaskNotExist) Error ¶
func (err ErrTaskNotExist) Error() string
type Package ¶
type Package struct { Version string `yaml:"version"` Name string `yaml:"name"` Imports []string `yaml:"imports"` Tasks []Task `yaml:"tasks"` Main struct { Hosts []string `yaml:"hosts"` Tasks []string `yaml:"tasks"` } `yaml:"main"` // contains filtered or unexported fields }
Package represents a package
func NewPackageFromFile ¶
NewPackageFromFile load a package from file
type Step ¶
type Step struct { For string // for for statement Type string // task, if blank it means remote shell Cmd string }
Step represents a task step
func (*Step) ExplainCmd ¶ added in v0.0.3
ExplainCmd render the commond with args
func (*Step) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.