From 0d1eecc168321dbfd56d1fec55c7d6df5eee2c29 Mon Sep 17 00:00:00 2001 From: Quey-Liang Kao Date: Sat, 21 Jan 2017 04:33:46 +0800 Subject: New Feature: Expanding existing todos --- todo.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'todo.go') 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": -- cgit v1.3