Documentation
¶
Index ¶
- func DateFilterableView(view string) bool
- func FindDBPath() (string, error)
- func ValidView(name string) bool
- type AmbiguousTaskError
- type DB
- func (d *DB) Close() error
- func (d *DB) FindAreaUUID(ref string) (string, error)
- func (d *DB) FindTagUUID(ref string) (string, error)
- func (d *DB) FindTasksByTitle(substr string) ([]model.Task, error)
- func (d *DB) GetAuthToken() (string, error)
- func (d *DB) GetChecklistItems(taskUUID string) ([]model.ChecklistItem, error)
- func (d *DB) GetTask(uuidOrTitle string) (*model.Task, error)
- func (d *DB) GetTaskByUUID(uuid string) (*model.Task, error)
- func (d *DB) ListAreas() ([]model.Area, error)
- func (d *DB) ListProjects(areaFilter string, includeCompleted bool) ([]model.Project, error)
- func (d *DB) ListTags() ([]model.Tag, error)
- func (d *DB) ListTasks(view string, opts TaskFilter) ([]model.Task, error)
- func (d *DB) SearchTasks(query string) ([]model.Task, error)
- type TaskFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateFilterableView ¶ added in v0.3.0
DateFilterableView reports whether --on/--from/--to apply to the view.
Types ¶
type AmbiguousTaskError ¶
func (*AmbiguousTaskError) Error ¶
func (e *AmbiguousTaskError) Error() string
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func NewFromSQL ¶
NewFromSQL wraps an existing *sql.DB. Test-only; production code uses Open.
func (*DB) FindAreaUUID ¶ added in v0.2.0
FindAreaUUID resolves an area reference (UUID or title) to its UUID, returning "" when no row matches.
func (*DB) FindTagUUID ¶ added in v0.2.0
FindTagUUID resolves a tag reference (UUID or title) to its UUID, returning "" when no row matches.
func (*DB) GetAuthToken ¶
func (*DB) GetChecklistItems ¶
func (d *DB) GetChecklistItems(taskUUID string) ([]model.ChecklistItem, error)
func (*DB) ListProjects ¶
type TaskFilter ¶
type TaskFilter struct {
Project string
Area string
Tag string
On *model.ThingsDate
From *model.ThingsDate
To *model.ThingsDate
}
Click to show internal directories.
Click to hide internal directories.