42 lines
928 B
Go
42 lines
928 B
Go
package taskwarrior
|
|
|
|
type Task struct {
|
|
Id int64 `json:"id"`
|
|
Uuid string `json:"uuid"`
|
|
Description string `json:"description"`
|
|
Project string `json:"project"`
|
|
Priority string `json:"priority"`
|
|
Status string `json:"status"`
|
|
Tags []string `json:"tags"`
|
|
Urgency float32 `json:"urgency"`
|
|
Due string `json:"due"`
|
|
Wait string `json:"wait"`
|
|
Scheduled string `json:"scheduled"`
|
|
End string `json:"end"`
|
|
Entry string `json:"entry"`
|
|
Modified string `json:"modified"`
|
|
}
|
|
|
|
type Tasks []*Task
|
|
|
|
type Context struct {
|
|
Name string
|
|
Active bool
|
|
ReadFilter string
|
|
WriteFilter string
|
|
}
|
|
|
|
type Contexts map[string]*Context
|
|
|
|
type Report struct {
|
|
Name string
|
|
Description string
|
|
Labels []string
|
|
Filter string
|
|
Sort string
|
|
Columns []string
|
|
Context bool
|
|
}
|
|
|
|
type Reports map[string]*Report
|