Versions in this module Expand all Collapse all v0 v0.0.3 Nov 27, 2020 Changes in this version type Step + Cmd string + For string + Type string + func (step *Step) ExplainCmd(args map[string]interface{}) (string, error) type Task + func (task *Task) RunWithContext(ctx *Context, args ...string) error + type Work struct + func (w *Work) Run() error v0.0.2 Nov 25, 2020 Changes in this version + func IsErrTaskNotExist(err error) bool + type Context struct + func NewContext(pkg *Package, host, user string, output io.Writer) *Context + func (ctx *Context) Close() error + func (ctx *Context) Execute(cmd string) error + func (ctx *Context) IsLogin() bool + func (ctx *Context) Login() error + func (ctx *Context) Upload(files ...string) error + type ErrTaskNotExist struct + TaskName string + func (err ErrTaskNotExist) Error() string + type Package struct + Imports []string + Main struct{ ... } + Name string + Tasks []Task + Version string + func NewPackageFromFile(fPath string) (*Package, error) + func (pkg *Package) FindTask(taskname string) (*Task, error) + func (pkg *Package) Run(hosts []string, tasks []string) error + type Step string + func (step *Step) UnmarshalYAML(unmarshal func(interface{}) error) error + func (step Step) Explain(args map[string]interface{}) (string, error) + func (step Step) Run(ctx *Context, args map[string]interface{}) error + type Task struct + Args []string + Name string + Pkg *Package + Steps []Step + func (task *Task) Run(host string, args ...string) error