Task represents a task
| 13 | |
| 14 | // Task represents a task |
| 15 | type Task struct { |
| 16 | Task string `hash:"ignore"` |
| 17 | Cmds []*Cmd |
| 18 | Deps []*Dep |
| 19 | Label string |
| 20 | Desc string |
| 21 | Prompt Prompt |
| 22 | Summary string |
| 23 | Requires *Requires |
| 24 | Aliases []string |
| 25 | Sources []*Glob |
| 26 | Generates []*Glob |
| 27 | Status []string |
| 28 | Preconditions []*Precondition |
| 29 | Dir string |
| 30 | Set []string |
| 31 | Shopt []string |
| 32 | Vars *Vars |
| 33 | Env *Vars |
| 34 | Dotenv []string |
| 35 | Silent *bool |
| 36 | Interactive bool |
| 37 | Internal bool |
| 38 | Method string |
| 39 | Prefix string `hash:"ignore"` |
| 40 | IgnoreError bool |
| 41 | UseGitignore *bool |
| 42 | Run string |
| 43 | Platforms []*Platform |
| 44 | If string |
| 45 | Watch bool |
| 46 | Location *Location |
| 47 | Failfast bool |
| 48 | // Populated during merging |
| 49 | Namespace string `hash:"ignore"` |
| 50 | IncludeVars *Vars |
| 51 | IncludedTaskfileVars *Vars |
| 52 | |
| 53 | FullName string `hash:"ignore"` |
| 54 | } |
| 55 | |
| 56 | func (t *Task) Name() string { |
| 57 | if t.Label != "" { |
nothing calls this directly
no outgoing calls
no test coverage detected