diff options
Diffstat (limited to 'todolist/app.go')
| -rw-r--r-- | todolist/app.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/todolist/app.go b/todolist/app.go index 367cc2f..2919234 100644 --- a/todolist/app.go +++ b/todolist/app.go @@ -132,6 +132,23 @@ func (a *App) ExpandTodo(input string) { fmt.Println("Todo expanded.") } +func (a *App) ManipulateNotes(input string) { + a.Load() + id, todo := a.getId(input) + parser := &Parser{} + if id == -1 { + return + } + + retStr := parser.ParseNotes(todo, input) + if retStr != "" { + a.Save() + if retStr != "list" { + fmt.Println("Notes " + retStr + "ed.") + } + } +} + func (a *App) ArchiveCompleted() { a.Load() for _, todo := range a.TodoList.Todos() { |
