Documentation ¶
Index ¶
- func PrintTasks(out io.Writer, tasks []*Task)
- type Command
- type Task
- type TaskDefs
- func (td *TaskDefs) AddVar(key string, value string)
- func (td *TaskDefs) Find(name string) (*Task, bool)
- func (td *TaskDefs) FindByAlias(alias string) (*Task, bool)
- func (td *TaskDefs) GetDependencies(task *Task) []*Task
- func (td *TaskDefs) GetTasks() []*Task
- func (td *TaskDefs) GetTasksWithDesc() []*Task
- func (td *TaskDefs) GetVars() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintTasks ¶
Types ¶
type Command ¶
func (*Command) UnmarshalYAML ¶
type Task ¶
type Task struct { Name string `yaml:"-"` Commands []*Command `yaml:"cmds"` Description string `yaml:"desc"` Variables map[string]any `yaml:"vars"` EnvVars map[string]string `yaml:"env"` Dependencies []string `yaml:"deps"` Aliases []string `yaml:"aliases"` }
func (*Task) GetExpandedCommands ¶
func (*Task) HasDependency ¶
Click to show internal directories.
Click to hide internal directories.