Documentation ¶
Index ¶
- func AddTask(path string, name string, date string) error
- func BackupTasks(path string, doneOnly bool) error
- func ChangeTaskStatus(path string, ids []int, status string) error
- func ConvertID(args []string) (int, error)
- func ConvertIDs(args []string) ([]int, error)
- func Dev() error
- func EditTask(path string, id int, name string, date string) error
- func ListTasks(path string, tag string, undoneOnly bool) error
- func ParseInputDate(in string) (string, error)
- func PrettyPrint(i interface{}) string
- func RemoveTask(path string, ids []int) error
- func SummarizeTask(path string, tag string, bygroup bool) error
- func WipeTasks(path string, doneOnly bool) error
- func WriteTasks(path string, tasks []Task, overwrite bool) error
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupTasks ¶
BackupTasks reads from the original task file and append the content to the backup file If doneOnly flag is provided, only the finished tasks will be back up
func ChangeTaskStatus ¶
ChangeTaskStatus changes the task status with done[x]/undone[ ]
func ConvertID ¶
ConvertID converts the input id to int Handle multiple values with format 2-4, 2,3,4
func ConvertIDs ¶
ConvertID converts the input id to []int. Similar to ConvertID Handle multiple values with format 2-4, 2,3,4
func ParseInputDate ¶
ParseInputDate parse the task date into right format Support now package and mmdd, dd/mmformat
func PrettyPrint ¶
func PrettyPrint(i interface{}) string
PrettyPrint to print struct in a readable way
func SummarizeTask ¶
SummarizeTask summarizes the man-day used for different tasks Tag is used as a search terms to filter the result TODO: bygroup is used to print the result by project group first. Now use [xxx] format.