示例#1
0
文件: done.go 项目: TechMantra/focus
func handleDone(c *cli.Context) {
	status := r.Status()
	if len(status) > 0 && len(status[0]) > 0 {
		fmt.Printf("Done working on issue #%s\n", status[0])
	}
	r.DoneTask()
}
示例#2
0
func handleStatus(c *cli.Context) {
	status := r.Status()
	if len(status) > 0 && len(status[0]) > 0 {
		fmt.Printf("Currently focused on issue #%s\n", status[0])
		if len(status[1]) > 0 {
			fmt.Printf(status[1])
		}
	} else {
		fmt.Println("You're not focused on anything.")
		fmt.Println("Run focus list to view your open tasks.")
	}
}