Пример #1
0
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.")
	}
}