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) }
func Done(c *cli.Context) { task := api.Update(api.FindTaskId(c.Args().First(), false), "completed", "true") fmt.Println("DONE! : " + task.Name) }