diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 11:33:33 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 11:33:33 +0200 |
| commit | f57ccb885d20c48e1dae65b8ad5c46375b9a11a9 (patch) | |
| tree | a023c5f5af65cfe8f20354c388c683c57437e5d2 /internal/askcli/taskexport.go | |
| parent | 56e9f980e52a53197ace71acdb277ba0e0368916 (diff) | |
docs: document askcli exports
Diffstat (limited to 'internal/askcli/taskexport.go')
| -rw-r--r-- | internal/askcli/taskexport.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/askcli/taskexport.go b/internal/askcli/taskexport.go index ca67ef5..d633d3c 100644 --- a/internal/askcli/taskexport.go +++ b/internal/askcli/taskexport.go @@ -6,6 +6,7 @@ import ( "io" ) +// TaskExport mirrors the JSON structure returned by Taskwarrior export commands. type TaskExport struct { UUID string `json:"uuid"` Description string `json:"description"` @@ -21,6 +22,7 @@ type TaskExport struct { } `json:"annotations"` } +// ParseTaskExport decodes Taskwarrior JSON from the supplied reader. func ParseTaskExport(r io.Reader) ([]TaskExport, error) { data, err := io.ReadAll(r) if err != nil { |
