diff options
| author | Quey-Liang Kao <s101062801@m101.nthu.edu.tw> | 2017-08-14 14:41:40 +0800 |
|---|---|---|
| committer | Quey-Liang Kao <s101062801@m101.nthu.edu.tw> | 2017-08-14 14:58:32 +0800 |
| commit | 5d28dac9b2e1d153f33551b968ab4c92cfce23ce (patch) | |
| tree | b323964d5a61014105b0884e81c9d88be1a74118 /todo.go | |
| parent | 49ab75141a7799aa746765547bd74cb07b45bfee (diff) | |
Implement the "an" feature: Adding notes to todos
This patch introduce a new attribute of a todo item, which is
"Notes", of type []string. The following enhancing patches will
contain the listing, removing and editing features.
Diffstat (limited to 'todo.go')
| -rw-r--r-- | todo.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -122,6 +122,11 @@ func usage() { yellow.Println("\ttodo d 33") fmt.Println("\tDeletes a todo with id 33\n") + blueBold.Println("\nManipulating notes") + fmt.Println(" You can add additional information to a existing todo.\n") + 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") + blueBold.Println("\nGarbage Collection") yellow.Println("\ttodo gc") fmt.Println("\tDeletes all archived todos.\n") @@ -153,6 +158,8 @@ func routeInput(command string, input string) { app.EditTodo(input) case "ex", "expand": app.ExpandTodo(input) + case "an": + app.ManipulateNotes(input) case "gc": app.GarbageCollect() case "p", "prioritize": |
