mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
Added lookup of notes in current book.
This commit is contained in:
parent
c0cd9f3096
commit
4d45eec682
1 changed files with 12 additions and 0 deletions
12
main.go
12
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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue