diff options
| author | Quey-Liang Kao <s101062801@m101.nthu.edu.tw> | 2017-08-14 16:37:40 +0800 |
|---|---|---|
| committer | Quey-Liang Kao <s101062801@m101.nthu.edu.tw> | 2017-08-14 16:37:40 +0800 |
| commit | e1ed1a2357bbf5083e96c883071339235ac0f02e (patch) | |
| tree | 400e6e82a90619e6c87865beec9d6880cb5f286d /todo.go | |
| parent | 9f62f82025e4dd7fa3a0dfc50bb94704209e608c (diff) | |
| parent | 7c24f39a0fc8bb07dc9db4f5fecd3468705b1e37 (diff) | |
Merge branch 'note' of github.com:NonerKao/todolist into note_patch_set
Diffstat (limited to 'todo.go')
| -rw-r--r-- | todo.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -122,6 +122,16 @@ func usage() { yellow.Println("\ttodo d 33") fmt.Println("\tDeletes a todo with id 33\n") + blueBold.Println("\nManipulating notes") + 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") + yellow.Println("\ttodo dn 12 3") + fmt.Println("\tDeletes the 3rd note of the todo with id 12\n") + yellow.Println("\ttodo en 12 3 check http://that.web.site") + fmt.Println("\tEditing the 3rd note of the todo with id 12 to \"http://that.web.site\" \n") + blueBold.Println("\nGarbage Collection") yellow.Println("\ttodo gc") fmt.Println("\tDeletes all archived todos.\n") @@ -153,6 +163,8 @@ func routeInput(command string, input string) { app.EditTodo(input) case "ex", "expand": app.ExpandTodo(input) + case "an", "ln", "dn", "en": + app.ManipulateNotes(input) case "gc": app.GarbageCollect() case "p", "prioritize": |
