func (env *Env) NewShowNotesCmd() *cli.Command {
	var useIndex bool
	var asQuote bool
	return &cli.Command{
		Name:        "notes",
		Description: "Lists all notes from provided book. Supports autocomplete!",
		ArgsUsage:   "BOOK_ID",
		Usage:       "List notes",
		Aliases:     []string{"n"},
		Flags: []cli.Flag{
			newQuoteFlag(asQuote),
			&cli.BoolFlag{Name: "index, id", Destination: &useIndex, Usage: "If set notes id will be included"},
		},
		Action: func(c *cli.Context) error {
			args := strings.Split(c.Args().First(), ":")
			bookIDString := args[0]
			bookID, err := strToUint(bookIDString)
			if err != nil {
				fmt.Println("ID of a book have to be a integer")
				return err
			}
			env.showNotes(bookID, useIndex)
			return nil
		},
		BashComplete: env.booksComplete,
	}
}
NewShowNotesCmd shows notes from provided book
package internal
import (
	"fmt"
	"github.com/urfave/cli/v2"
	"strings"
)
func newQuoteFlag(dest bool) *cli.BoolFlag {
	return &cli.BoolFlag{
		Name: "quote", Aliases: []string{"q"}, Destination: &dest, Usage: "Include book title and author",
	}
}