Versions in this module Expand all Collapse all v0 v0.2.0 Mar 14, 2021 Changes in this version type Taskflow + DefaultTask RegisteredTask v0.1.1 Feb 28, 2021 Changes in this version + const CodeFailure + const CodeInvalidArgs + const CodePass + var DefaultOutput io.Writer = os.Stdout + func Exec(name string, args ...string) func(*TF) + type Deps []RegisteredTask + type ParamError struct + Err error + Key string + func (e *ParamError) Error() string + func (e *ParamError) Unwrap() error + type Params map[string]string + func (p Params) SetBool(key string, v bool) + func (p Params) SetDate(key string, v time.Time, layout string) + func (p Params) SetDuration(key string, v time.Duration) + func (p Params) SetInt(key string, v int) + func (p Params) SetJSON(key string, v interface{}) error + func (p Params) SetText(key string, v encoding.TextMarshaler) error + type RegisteredTask struct + type RunResult struct + func (r RunResult) Duration() time.Duration + func (r RunResult) Failed() bool + func (r RunResult) Passed() bool + func (r RunResult) Skipped() bool + type Runner struct + Ctx context.Context + Output io.Writer + Params Params + TaskName string + Verbose bool + func (r Runner) Run(command func(tf *TF)) RunResult + type TF struct + func (tf *TF) Cmd(name string, args ...string) *exec.Cmd + func (tf *TF) Context() context.Context + func (tf *TF) Error(args ...interface{}) + func (tf *TF) Errorf(format string, args ...interface{}) + func (tf *TF) Fail() + func (tf *TF) FailNow() + func (tf *TF) Failed() bool + func (tf *TF) Fatal(args ...interface{}) + func (tf *TF) Fatalf(format string, args ...interface{}) + func (tf *TF) Log(args ...interface{}) + func (tf *TF) Logf(format string, args ...interface{}) + func (tf *TF) Name() string + func (tf *TF) Output() io.Writer + func (tf *TF) Params() TFParams + func (tf *TF) Skip(args ...interface{}) + func (tf *TF) SkipNow() + func (tf *TF) Skipf(format string, args ...interface{}) + func (tf *TF) Skipped() bool + func (tf *TF) Verbose() bool + type TFParams struct + func (p TFParams) Bool(key string) bool + func (p TFParams) Date(key string, layout string) time.Time + func (p TFParams) Duration(key string) time.Duration + func (p TFParams) Float64(key string) float64 + func (p TFParams) Int(key string) int + func (p TFParams) ParseJSON(key string, v interface{}) + func (p TFParams) ParseText(key string, v encoding.TextUnmarshaler) + func (p TFParams) String(key string) string + type Task struct + Command func(tf *TF) + Dependencies Deps + Description string + Name string + type Taskflow struct + Output io.Writer + Params Params + Verbose bool + func New() *Taskflow + func (f *Taskflow) Main() + func (f *Taskflow) MustRegister(task Task) RegisteredTask + func (f *Taskflow) Register(task Task) (RegisteredTask, error) + func (f *Taskflow) Run(ctx context.Context, args ...string) int