aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
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)
}
}