Added lookup of notes in current book.

This commit is contained in:
Michiel Alexander Boekhoff 2017-04-05 14:30:01 +01:00
commit 4d45eec682

12
main.go
View file

@ -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)
}