diff --git a/main.go b/main.go index 15e916cc..7c47d80b 100644 --- a/main.go +++ b/main.go @@ -287,6 +287,18 @@ func main() { fmt.Printf("Notes:\n") + for _, note := range notes { + fmt.Printf("%s\n", note) + } + case "list", "l": + bookName, err := getCurrentBook() + check(err) + + notes, err := getNotesInBook(bookName) + check(err) + + fmt.Printf("Notes:\n") + for _, note := range notes { fmt.Printf("%s\n", note) }