Versions in this module Expand all Collapse all v0 v0.3.0 Aug 21, 2026 v0.2.1 Aug 19, 2026 v0.2.0 Aug 19, 2026 v0.1.0 Aug 9, 2026 Changes in this version + var ErrNotFound = errors.New("tasklist: not found") + func FenceFor(content string) string + func RenderHint(hint, indent string) string + func RenderMarkdown(tl TaskListWithTasks) string + type ListStatus string + const ListStatusAbandoned + const ListStatusCompleted + const ListStatusInProgress + const ListStatusPending + func (s ListStatus) IsValid() bool + type Status string + const StatusDone + const StatusInProgress + const StatusPending + const StatusSkipped + func (s Status) IsValid() bool + type Store struct + func New(db *statestore.DB) (*Store, error) + func (s *Store) AddTask(listID int64, body, hint string) (Task, error) + func (s *Store) Bootstrap(ctx context.Context) error + func (s *Store) CreateList(label string) (TaskList, error) + func (s *Store) GetList(id int64) (TaskListWithTasks, error) + func (s *Store) GetTask(taskID int64) (Task, error) + func (s *Store) ListLists(filter ListStatus) ([]TaskList, error) + func (s *Store) ReorderTask(taskID int64, targetPos int) error + func (s *Store) SetAfterMutate(fn func(taskID int64) error) + func (s *Store) UpdateListStatus(listID int64, status ListStatus) error + func (s *Store) UpdateTask(taskID int64, upd TaskUpdate) error + func (s *Store) UpdateTaskStatus(taskID int64, status Status) error + type Task struct + Body string + Hint string + ID int64 + Ord int + Status Status + TaskListID int64 + type TaskList struct + CreatedAt time.Time + ID int64 + Label string + Status ListStatus + UpdatedAt time.Time + func CreateListTx(tx *sql.Tx, label string) (TaskList, error) + type TaskListWithTasks struct + List TaskList + Tasks []Task + type TaskUpdate struct + Body *string + Hint *string + Status *Status