From c4d6dbdb100bb66db9b184c653617c47a63e91ca Mon Sep 17 00:00:00 2001 From: Quey-Liang Kao Date: Mon, 14 Aug 2017 16:12:53 +0800 Subject: Implement the "dn" feature: Deleteing notes --- todo.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'todo.go') diff --git a/todo.go b/todo.go index e48eda2..9619bdb 100644 --- a/todo.go +++ b/todo.go @@ -127,6 +127,8 @@ func usage() { 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") + yellow.Println("\ttodo dn 12 3") + fmt.Println("\tDeletes the 3rd note of the todo with id 12\n") blueBold.Println("\nGarbage Collection") yellow.Println("\ttodo gc") @@ -159,7 +161,7 @@ func routeInput(command string, input string) { app.EditTodo(input) case "ex", "expand": app.ExpandTodo(input) - case "an", "ln": + case "an", "ln", "dn": app.ManipulateNotes(input) case "gc": app.GarbageCollect() -- cgit v1.3