From 81fbc1b949f4c5e394e8fc20fa5d4801f338f36e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= <1224732+snonux@users.noreply.github.com> Date: Thu, 19 Jun 2025 23:59:05 +0300 Subject: Add table-based UI and extend task fields --- internal/task/task.go | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'internal/task') diff --git a/internal/task/task.go b/internal/task/task.go index dcb3e9a..a39a7f6 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -8,12 +8,24 @@ import ( ) // Task represents a taskwarrior task as returned by `task export`. +type Annotation struct { + Entry string `json:"entry"` + Description string `json:"description"` +} + type Task struct { - ID int `json:"id"` - UUID string `json:"uuid"` - Description string `json:"description"` - Tags []string `json:"tags"` - Status string `json:"status"` + ID int `json:"id"` + UUID string `json:"uuid"` + Description string `json:"description"` + Tags []string `json:"tags"` + Status string `json:"status"` + Start string `json:"start"` + Entry string `json:"entry"` + Due string `json:"due"` + Priority string `json:"priority"` + Recur string `json:"recur"` + Urgency float64 `json:"urgency"` + Annotations []Annotation `json:"annotations"` } // Add creates a new task with the given description and tags. -- cgit v1.2.3