2022-12-17 15:31:00 +02:00
|
|
|
package editors
|
|
|
|
|
2023-03-17 14:34:06 +02:00
|
|
|
type (
|
|
|
|
// Taskfile wraps task list output for use in editor integrations (e.g. VSCode, etc)
|
|
|
|
Taskfile struct {
|
|
|
|
Tasks []Task `json:"tasks"`
|
|
|
|
Location string `json:"location"`
|
|
|
|
}
|
|
|
|
// Task describes a single task
|
|
|
|
Task struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Desc string `json:"desc"`
|
|
|
|
Summary string `json:"summary"`
|
2023-12-18 11:45:41 +02:00
|
|
|
Aliases []string `json:"aliases"`
|
2023-03-17 14:34:06 +02:00
|
|
|
UpToDate bool `json:"up_to_date"`
|
|
|
|
Location *Location `json:"location"`
|
|
|
|
}
|
|
|
|
// Location describes a task's location in a taskfile
|
|
|
|
Location struct {
|
|
|
|
Line int `json:"line"`
|
|
|
|
Column int `json:"column"`
|
|
|
|
Taskfile string `json:"taskfile"`
|
|
|
|
}
|
|
|
|
)
|