Exemple #1
0
func DueOn(c *cli.Context) {
	taskId := api.FindTaskId(c.Args().First(), true)
	task := api.Update(taskId, "due_on", toDate(c.Args()[1]))
	fmt.Println("set due on [ " + task.Due_on + " ] :" + task.Name)
}
Exemple #2
0
func Done(c *cli.Context) {
	task := api.Update(api.FindTaskId(c.Args().First(), false), "completed", "true")
	fmt.Println("DONE! : " + task.Name)
}