diff options
| author | Grant Ammons <gammons@gmail.com> | 2016-04-25 14:35:43 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2016-04-25 14:35:43 -0400 |
| commit | a0f7203996439210b2a40663eeeeb8563ab03d68 (patch) | |
| tree | 84f7bd055f5cc581fa2b4894206868c998512d1a /todo.go | |
| parent | dde4f5330c2126af0e3ec17e4098653c6f551426 (diff) | |
Get grouping working correctly
Diffstat (limited to 'todo.go')
| -rw-r--r-- | todo.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -13,19 +13,18 @@ func main() { usage() os.Exit(0) } - routeInput(os.Args[1]) + input := strings.Join(os.Args[1:], " ") + routeInput(os.Args[1], input) } func usage() { fmt.Println("usage") } -func routeInput(command string) { +func routeInput(command string, input string) { app := todolist.NewApp() - input := strings.Join(os.Args[1:], " ") switch { case command == "l" || command == "list": app.ListTodos(input) } - } |
