aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorQuey-Liang Kao <s101062801@m101.nthu.edu.tw>2017-01-26 05:45:49 -0600
committerGitHub <noreply@github.com>2017-01-26 05:45:49 -0600
commitbfd33a9904daac273ff2b708d02c738be276b8c7 (patch)
treee2ff4b783ce6e856c89b779e72bc4a3eb40b9eaf /todo.go
parent4c53c6f4755f3b50287efced0b0db7e1c6b4fa54 (diff)
parent206a28076422758102fb7df322b218dfe4248deb (diff)
Merge pull request #27 from gammons/issue/proposal-expand
New Feature: Expanding existing todos
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 36e5bf7..2a45f28 100644
--- a/todo.go
+++ b/todo.go
@@ -97,6 +97,10 @@ func usage() {
yellow.Println("\ttodo e 33 due none")
fmt.Println("\tEdits the todo with 33 and removes the due date\n")
+ blueBold.Println("\nExpanding existing todos")
+ yellow.Println("\ttodo ex 39 +final: read physics due mon, do literature report due fri")
+ fmt.Println("\tRemoves the todo with id 39, and adds following two todos\n")
+
blueBold.Println("\nDeleting")
yellow.Println("\ttodo d 33")
fmt.Println("\tDeletes a todo with id 33\n")
@@ -125,6 +129,8 @@ func routeInput(command string, input string) {
app.ArchiveCompleted()
case "e", "edit":
app.EditTodoDue(input)
+ case "ex", "expand":
+ app.ExpandTodo(input)
case "init":
app.InitializeRepo()
case "web":