diff options
| author | Quey-Liang Kao <s101062801@m101.nthu.edu.tw> | 2017-08-29 17:00:18 +0800 |
|---|---|---|
| committer | Quey-Liang Kao <s101062801@m101.nthu.edu.tw> | 2017-08-29 17:00:18 +0800 |
| commit | a716a04c831e4fb23cdd558756d8f393e4ef8d73 (patch) | |
| tree | b770c518314b8495f7e220ece9da4a10c6639546 /todo.go | |
| parent | 34639c4285621177efb10b82ddb07cd0017af56a (diff) | |
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.
Diffstat (limited to 'todo.go')
| -rw-r--r-- | todo.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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": |
