diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-19 23:59:18 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 23:59:18 +0300 |
| commit | 15dcd6f5baad135b1472b79886bce9a77189dcf3 (patch) | |
| tree | 7d63c1a81cd49df45858cd0adc647da0a384f4d0 /internal/task/task.go | |
| parent | cf6c471802e9ae896330d5d5ec88f9c9aedca82e (diff) | |
| parent | 81fbc1b949f4c5e394e8fc20fa5d4801f338f36e (diff) | |
Merge pull request #6 from snonux/codex/improve-ui-design-and-table-view
Enhance UI with colorful table
Diffstat (limited to 'internal/task/task.go')
| -rw-r--r-- | internal/task/task.go | 22 |
1 files changed, 17 insertions, 5 deletions
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. |
