From 26ec23620d50be79ea664a9095b3653be79e3874 Mon Sep 17 00:00:00 2001 From: Quey-Liang Kao Date: Mon, 14 Aug 2017 15:45:22 +0800 Subject: Implement the "ln" feature: Listing notes of a todo --- todo.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'todo.go') diff --git a/todo.go b/todo.go index 77faccb..e48eda2 100644 --- a/todo.go +++ b/todo.go @@ -123,9 +123,10 @@ func usage() { fmt.Println("\tDeletes a todo with id 33\n") blueBold.Println("\nManipulating notes") - fmt.Println(" You can add additional information to a existing todo.\n") yellow.Println("\ttodo an 12 check http://this.web.site") fmt.Println("\tAdds notes \"check http://this.web.site\" to the todo with id 12\n") + yellow.Println("\ttodo ln 12") + fmt.Println("\tLists notes of the todo with id 12\n") blueBold.Println("\nGarbage Collection") yellow.Println("\ttodo gc") @@ -158,7 +159,7 @@ func routeInput(command string, input string) { app.EditTodo(input) case "ex", "expand": app.ExpandTodo(input) - case "an": + case "an", "ln": app.ManipulateNotes(input) case "gc": app.GarbageCollect() -- cgit v1.3