aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorStuart Skelton <stuarts@broadbean.com>2017-09-27 19:13:04 +0100
committerStuart Skelton <stuarts@broadbean.com>2017-09-27 19:55:35 +0100
commitaac8a1f17beeb6069da999cde1fc20c251811318 (patch)
tree75749417869e43900195d3850c09045932674714 /todo.go
parentffb472f7d84952228dd244f4911806f0e6a31e77 (diff)
Implement a done option
Diffstat (limited to 'todo.go')
-rw-r--r--todo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/todo.go b/todo.go
index 98bc133..d2cc06e 100644
--- a/todo.go
+++ b/todo.go
@@ -149,6 +149,8 @@ func routeInput(command string, input string) {
app.ListTodos(input)
case "a", "add":
app.AddTodo(input)
+ case "done":
+ app.AddDoneTodo(input)
case "d", "delete":
app.DeleteTodo(input)
case "c", "complete":