Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCompleteCommand ¶
func NewCompleteCommand() *cli.Command
NewCompleteCommand sets autocomplete for GoNotes
Types ¶
type Book ¶
type Book struct { gorm.Model Name string `gorm:"unique;not null"` BookHash string `gorm:"unique;not null"` Notes []Note }
Book is representation of a single book from kindle notes
type Env ¶
Env gives an easy access to database
func (*Env) NewDeleteBookCmd ¶
func (env *Env) NewDeleteBookCmd() *cli.Command
NewDeleteBookCmd deletes selected book by ID
func (*Env) NewListBooksCmd ¶
func (env *Env) NewListBooksCmd() *cli.Command
NewListBooksCmd list all available books
func (*Env) NewParseNotesCmd ¶
func (env *Env) NewParseNotesCmd() *cli.Command
NewParseNotesCmd parses provided Kindle clippings into books and notes
func (*Env) NewRandomNoteCmd ¶
func (env *Env) NewRandomNoteCmd() *cli.Command
NewRandomNoteCmd shows random note
func (*Env) NewRemoveDuplicatesCmd ¶
func (env *Env) NewRemoveDuplicatesCmd() *cli.Command
NewRemoveDuplicatesCmd performs simple deduplication of notes within single book
func (*Env) NewShowNotesCmd ¶
func (env *Env) NewShowNotesCmd() *cli.Command
NewShowNotesCmd shows notes from provided book
Click to show internal directories.
Click to hide internal directories.