Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelFunc ¶
type CancelFunc func()
type ParallelStep ¶
type ParallelStep struct {
Parallel Task `yaml:"parallel"`
}
func (ParallelStep) Run ¶
func (c ParallelStep) Run(tasks Tasks) (chan struct{}, CancelFunc)
func (*ParallelStep) SetDir ¶
func (c *ParallelStep) SetDir(dir string)
type RunStep ¶
type RunStep struct { // - shell: bash // script: | // echo "Hello World!" Script string `yaml:"run"` Shell string `yaml:"shell"` RunIn string `yaml:"run-in"` // contains filtered or unexported fields }
func (RunStep) Run ¶
func (c RunStep) Run(tasks Tasks) (chan struct{}, CancelFunc)
type Step ¶
type Step interface { Run(tasks Tasks) (chan struct{}, CancelFunc) SetDir(dir string) }
type Task ¶
type Task struct {
Steps []Step
}
func (Task) Run ¶
func (t Task) Run(tasks Tasks) (chan struct{}, CancelFunc)
func (Task) RunParallel ¶
func (t Task) RunParallel(tasks Tasks) (chan struct{}, CancelFunc)
func (*Task) UnmarshalYAML ¶
type TaskStep ¶
type TaskStep struct { // Task: // - task: <task-name> Task string }
func (TaskStep) Run ¶
func (c TaskStep) Run(tasks Tasks) (chan struct{}, CancelFunc)
Click to show internal directories.
Click to hide internal directories.