aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-03-06 07:47:15 -0500
committerGitHub <noreply@github.com>2017-03-06 07:47:15 -0500
commitc67037d4944c949bd53e2a0925a51717c7eb5334 (patch)
tree98b8e18f6779fc4d9e243d1d5215117763a1c404 /todo.go
parent39d01ff369695cc9a3ac92cfea3c7f9169aceb0a (diff)
parentc2114f083afeb1ac2cc28e9a83f3a9c591b59a1f (diff)
Merge pull request #38 from gammons/prioritize-feature
Add priority feature
Diffstat (limited to 'todo.go')
-rw-r--r--todo.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/todo.go b/todo.go
index 2a45f28..f8a2d70 100644
--- a/todo.go
+++ b/todo.go
@@ -81,6 +81,15 @@ func usage() {
yellow.Println("\ttodo uc 33")
fmt.Println("\tUncompletes a todo with id 33\n")
+ blueBold.Println("\nPrioritizing")
+ fmt.Println("Todos have a priority flag, which will make them bold when listed.\n")
+ yellow.Println("\ttodo p 33")
+ fmt.Println("\tPrioritizes a todo with id 33\n")
+ yellow.Println("\ttodo up 33")
+ fmt.Println("\tUn-prioritizes a todo with id 33\n")
+ yellow.Println("\ttodo l p")
+ fmt.Println("\tlist all priority todos\n")
+
blueBold.Println("\nArchiving")
fmt.Println("You can archive todos once they are done, or if you might come back to them.")
fmt.Println("By default, todo will only show unarchived todos.\n")
@@ -131,6 +140,10 @@ func routeInput(command string, input string) {
app.EditTodoDue(input)
case "ex", "expand":
app.ExpandTodo(input)
+ case "p", "prioritize":
+ app.PrioritizeTodo(input)
+ case "up", "unprioritize":
+ app.UnprioritizeTodo(input)
case "init":
app.InitializeRepo()
case "web":