internal

package
v0.0.0-...-32a6930 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 10 Imported by: 0

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

type Env struct {
	DB *gorm.DB
}

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

type Note

type Note struct {
	gorm.Model
	Text     string `gorm:"unique;not null"`
	NoteHash string
	BookID   uint
}

Note is representation of a single note from kindle notes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL