3 local -a _1st_arguments
7 'view:list books, notes, or view a content'
8 'edit:edit a note or a book'
9 'remove:remove a note or a book'
10 'find:find notes by keywords'
11 'sync:sync data with the server'
12 'login:login to the dnote server'
13 'logout:logout from the dnote server'
14 'version:print the current version'
15 'help:get help about any command'
19 local names=$(dnote view --name-only)
22 while read -r line; do
29 if (( CURRENT == 2 )); then
30 _describe -t commands "dnote subcommand" _1st_arguments
32 elif (( CURRENT == 3 )); then
36 "names:book names:($(get_booknames))"