aeth 1 month ago
parent
commit
203bbf34d2
2 changed files with 4 additions and 2 deletions
  1. 2 0
      .gitignore
  2. 2 2
      pkg/userinterface.go

+ 2 - 0
.gitignore

@@ -26,3 +26,5 @@ _testmain.go
 
 build/*
 
+*.ta
+

+ 2 - 2
pkg/userinterface.go

@@ -48,8 +48,8 @@ type model struct {
 
 func InitialModel() model {
 	shelf := NewFilesystemShelf(FS_SAVE_LOCATION)
-	//shelf.AddTask(Task{Id: 1, Title: "This is a sample task", Desc: "Quick sample task that im testing the storage with",
-	//	Due: time.Now().AddDate(0, 0, 2), Done: false, Priority: 1})
+	shelf.AddTask(Task{Id: 1, Title: "This is a sample task", Desc: "Quick sample task that im testing the storage with",
+		Due: time.Now().AddDate(0, 0, 2), Done: false, Priority: 1})
 	return model{
 		// Our to-do list is a grocery list
 		choices: GetTaskNames(shelf.GetAll()),