aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-03-07 08:12:35 -0500
committerGrant Ammons <gammons@gmail.com>2017-03-07 08:12:35 -0500
commit5763376a7ef50a116f9585ffd280bbf8e37621d3 (patch)
tree8dc6d5376e1bf422a1aa693c27f505721741a1f0 /todo.go
parent871fb90b26a98ee3569c325940a5f4e380631c54 (diff)
parent34931b46ed9ebb06e9555d6e62c98c70dc460d59 (diff)
Merge branch 'master' into garbage-collect
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 b42eed6..0ce5dc5 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")
@@ -137,6 +146,10 @@ func routeInput(command string, input string) {
app.ExpandTodo(input)
case "gc":
app.GarbageCollect()
+ case "p", "prioritize":
+ app.PrioritizeTodo(input)
+ case "up", "unprioritize":
+ app.UnprioritizeTodo(input)
case "init":
app.InitializeRepo()
case "web":