From a716a04c831e4fb23cdd558756d8f393e4ef8d73 Mon Sep 17 00:00:00 2001 From: Quey-Liang Kao Date: Tue, 29 Aug 2017 17:00:18 +0800 Subject: Refactor previous commits Rewrite the `ManipulateNotes` function into `HandleNotes`, which routes the note sub-commands to calls of newly-written `Parse*Note` functions. On successful parse, these functions return true, and false otherwise. Related tests are also refined. --- todo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'todo.go') diff --git a/todo.go b/todo.go index d2bc7ab..645a880 100644 --- a/todo.go +++ b/todo.go @@ -166,7 +166,7 @@ func routeInput(command string, input string) { case "ex", "expand": app.ExpandTodo(input) case "an", "n", "dn", "en": - app.ManipulateNotes(input) + app.HandleNotes(input) case "gc": app.GarbageCollect() case "p", "prioritize": -- cgit v1.3