aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'todolist/app.go')
-rw-r--r--todolist/app.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/todolist/app.go b/todolist/app.go
index 74fb8dc..267f482 100644
--- a/todolist/app.go
+++ b/todolist/app.go
@@ -36,6 +36,14 @@ func (a *App) DeleteTodo(input string) {
}
}
+func (a *App) ListTodos(input string) {
+ //filtered := NewFilter(a.TodoStore.Todos()).filter()
+ grouped := a.getGroups(input)
+
+ formatter := NewFormatter(grouped)
+ formatter.Print()
+}
+
func (a *App) getId(input string) int {
re, _ := regexp.Compile("\\d+")
@@ -47,14 +55,6 @@ func (a *App) getId(input string) int {
}
}
-func (a *App) ListTodos(input string) {
- //filtered := NewFilter(a.TodoStore.Todos()).filter()
- grouped := a.getGroups(input)
-
- formatter := NewFormatter(grouped)
- formatter.Print()
-}
-
func (a *App) getGroups(input string) *GroupedTodos {
grouper := &Grouper{}
contextRegex, _ := regexp.Compile(`by c.*$`)