Versions in this module Expand all Collapse all v0 v0.5.0 Feb 20, 2021 Changes in this version + const TaskFmt + func Add(args []string) (ok bool) + func All(project, label string, fullTime bool) (ok bool) + func Backlog(project, label string, fullTime bool) bool + func Claim(id uint) (ok bool) + func Completed(project, label string, fullTime bool) bool + func Done(id uint) (ok bool) + func Modify(id uint, args []string) (ok bool) + func ParseLabel(token string) (string, bool) + func ParseProject(token string) (string, bool) + func Remove(id uint) (ok bool) + func Report() bool + func ResetCompleted() bool + func Return(id uint) (ok bool) + func TODO(project, label string, fullTime bool) bool + func Undo(id uint) (ok bool) + type List []Task + func (l List) Len() int + func (l List) Less(i, j int) bool + func (l List) Print(project, label string, fullTime bool) bool + func (l List) Report(w io.Writer) (err error) + func (l List) Save(data, name string) (ok bool) + func (l List) Swap(i, j int) + type Store map[string]List + func (s Store) Add(t Task) (id uint, ok bool) + func (s Store) Claim(id uint) (ok bool) + func (s Store) Done(id uint) bool + func (s Store) Modify(t Task) (ok bool) + func (s Store) Remove(id uint) bool + func (s Store) Report() (ok bool) + func (s Store) Reset(name string) bool + func (s Store) Return(id uint) bool + func (s Store) Undo(id uint) (ok bool) + type Task struct + Created time.Time + Finished time.Time + ID uint + Label string + Name string + Project string + func Read(r io.Reader) (t Task, err error) + func (t Task) Print(tw io.Writer, fullTime bool) (err error) + func (t Task) Report(w io.Writer) (err error) + func (t Task) Write(w io.Writer) (err error)