1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

Add --json flag to be used by editor extensions (#936)

This commit is contained in:
David Alpert
2022-12-17 07:31:00 -06:00
committed by GitHub
parent 41a9316523
commit 321f7b59d8
5 changed files with 131 additions and 24 deletions

View File

@@ -0,0 +1,14 @@
package editors
// Output wraps task list output for use in editor integrations (e.g. VSCode, etc)
type Output struct {
Tasks []Task `json:"tasks"`
}
// Task describes a single task
type Task struct {
Name string `json:"name"`
Desc string `json:"desc"`
Summary string `json:"summary"`
UpToDate bool `json:"up_to_date"`
}