aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-04-26 09:01:40 -0400
committerGrant Ammons <gammons@gmail.com>2016-04-26 09:01:40 -0400
commite3213b3ef2c84387b66eeb731f5493c5e6da6a5d (patch)
tree46b5ee148e7fd578d992f08ab89ba1d24a322d29 /todo.go
parenta0f7203996439210b2a40663eeeeb8563ab03d68 (diff)
Get adding a todo working
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 c6bd052..5ae2e43 100644
--- a/todo.go
+++ b/todo.go
@@ -26,5 +26,7 @@ func routeInput(command string, input string) {
switch {
case command == "l" || command == "list":
app.ListTodos(input)
+ case command == "a" || command == "add":
+ app.AddTodo(input)
}
}