tasks

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(task *Task) error

func Delete

func Delete(task *Task) error

func DeleteArchived

func DeleteArchived() error

func Done

func Done(task *Task) error

func Save

func Save() error

func Unarchive

func Unarchive(task *Task) error

func Undone

func Undone(task *Task) error

Types

type Status

type Status int
const (
	ACTIVE Status = iota
	DONE
	ARCHIVED
)

type Task

type Task struct {
	Name      string    `yaml:"name"`
	Status    Status    `yaml:"status"`
	BeginTime time.Time `yaml:"begin-time"`
	DoneTime  time.Time `yaml:"done-time"`
}

func Append

func Append(name string) (*Task, error)

type TaskList

type TaskList []*Task

func List

func List() TaskList

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL