aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-03-07 08:50:00 -0500
committerGitHub <noreply@github.com>2017-03-07 08:50:00 -0500
commitb735a0cc90c6df666f59b7ee302dae27a6a7afeb (patch)
tree8dc6d5376e1bf422a1aa693c27f505721741a1f0 /todo.go
parent34931b46ed9ebb06e9555d6e62c98c70dc460d59 (diff)
parent5763376a7ef50a116f9585ffd280bbf8e37621d3 (diff)
Merge pull request #37 from gammons/garbage-collect
Add garbage collection feature
Diffstat (limited to 'todo.go')
-rw-r--r--todo.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/todo.go b/todo.go
index f8a2d70..0ce5dc5 100644
--- a/todo.go
+++ b/todo.go
@@ -115,6 +115,10 @@ func usage() {
fmt.Println("\tDeletes a todo with id 33\n")
fmt.Println("Todolist was lovingly crafted by Grant Ammons (https://twitter.com/gammons).")
fmt.Println("For full documentation, please visit http://todolist.site")
+
+ blueBold.Println("\nGarbage Collection")
+ yellow.Println("\ttodo gc")
+ fmt.Println("\tDeletes all archived todos.\n")
}
func routeInput(command string, input string) {
@@ -140,6 +144,8 @@ func routeInput(command string, input string) {
app.EditTodoDue(input)
case "ex", "expand":
app.ExpandTodo(input)
+ case "gc":
+ app.GarbageCollect()
case "p", "prioritize":
app.PrioritizeTodo(input)
case "up", "unprioritize":