diff options
| author | Quey-Liang Kao <s101062801@m101.nthu.edu.tw> | 2017-08-14 16:12:53 +0800 |
|---|---|---|
| committer | Quey-Liang Kao <s101062801@m101.nthu.edu.tw> | 2017-08-14 16:12:53 +0800 |
| commit | c4d6dbdb100bb66db9b184c653617c47a63e91ca (patch) | |
| tree | 73555a8af7496a5af47b9257037fd327fe7a279f /todo.go | |
| parent | 26ec23620d50be79ea664a9095b3653be79e3874 (diff) | |
Implement the "dn" feature: Deleteing notes
Diffstat (limited to 'todo.go')
| -rw-r--r-- | todo.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() |
