aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-05-01 15:07:45 -0400
committerGrant Ammons <gammons@gmail.com>2016-05-01 15:07:45 -0400
commit0905a863f50d9631e6c44488b952622e75d79785 (patch)
tree0634e9bd9e176660ad3d3260b24f08825aa85c67 /todo.go
parentef9427646b9464d1f8c376f75741e737117a1a83 (diff)
Implement delete logic
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 5ae2e43..992989a 100644
--- a/todo.go
+++ b/todo.go
@@ -28,5 +28,7 @@ func routeInput(command string, input string) {
app.ListTodos(input)
case command == "a" || command == "add":
app.AddTodo(input)
+ case command == "d" || command == "del":
+ app.DeleteTodo(input)
}
}