aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-05-12 07:18:47 -0400
committerGrant Ammons <gammons@gmail.com>2016-05-12 07:18:47 -0400
commit3f14a184e28927697185d35829fa1bdb9db5b80d (patch)
treecf023594e7d74cc92f6c69bbdc4946dc1df27898 /todo.go
parent5cdaefd17b999aa554485ca30246e7469affe1e4 (diff)
Make agenda its own command
Diffstat (limited to 'todo.go')
-rw-r--r--todo.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/todo.go b/todo.go
index 45d5425..7c87a38 100644
--- a/todo.go
+++ b/todo.go
@@ -42,7 +42,7 @@ func usage() {
blueBold.Println("\nListing todos")
fmt.Println(" When listing todos, you can filter and group the output.\n")
- fmt.Println(" todo l due (agenda|tod|today|tom|tomorrow|overdue|this week|next week|mon|tue|wed|thu|fri|sat|sun|none)")
+ fmt.Println(" todo l due (tod|today|tom|tomorrow|overdue|this week|next week|mon|tue|wed|thu|fri|sat|sun|none)")
fmt.Println(" todo l overdue")
cyan.Println(" Filtering by date:\n")
@@ -54,7 +54,7 @@ func usage() {
fmt.Println("\tlists all todos due monday\n")
yellow.Println("\ttodo l overdue")
fmt.Println("\tlists all todos where the due date is in the past\n")
- yellow.Println("\ttodo l agenda")
+ yellow.Println("\ttodo agenda")
fmt.Println("\tlists all todos where the due date is today or in the past\n")
cyan.Println(" Grouping:")
@@ -104,7 +104,7 @@ func usage() {
func routeInput(command string, input string) {
app := todolist.NewApp()
switch command {
- case "l", "list":
+ case "l", "list", "agenda":
app.ListTodos(input)
case "a", "add":
app.AddTodo(input)