diff options
Diffstat (limited to 'todolist/app.go')
| -rw-r--r-- | todolist/app.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/todolist/app.go b/todolist/app.go index 0d3ce95..7d3ccb2 100644 --- a/todolist/app.go +++ b/todolist/app.go @@ -13,10 +13,14 @@ type App struct { func NewApp() *App { app := &App{TodoStore: NewFileStore()} - app.TodoStore.Load() return app } +func (a *App) InitializeRepo() { + a.TodoStore.Initialize() + fmt.Println("Todo repo initialized.") +} + func (a *App) AddTodo(input string) { parser := &Parser{} todo := parser.ParseNewTodo(input) |
