Documentation ¶
Index ¶
- Constants
- func AskConfirmation(question string) (bool, error)
- func ChangeBook(bookName string) error
- func CheckFileExists(filepath string) bool
- func GenerateConfigFile() error
- func GenerateNoteID() string
- func GetBooks() ([]string, error)
- func GetConfigPath() (string, error)
- func GetCurrentBook() (string, error)
- func GetDnotePath() (string, error)
- func GetDnoteUpdatePath() (string, error)
- func GetYAMLDnoteArchivePath() (string, error)
- func ReadNoteContent() ([]byte, error)
- func TouchDnoteFile() error
- func TouchDnoteUpgradeFile() error
- func WriteConfig(config Config) error
- func WriteDnote(dnote Dnote) error
- type Book
- type Config
- type Dnote
- type Note
- type YAMLDnote
Constants ¶
View Source
const DnoteUpdateFilename = ".dnote-upgrade"
View Source
const Version = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
func AskConfirmation ¶
func ChangeBook ¶ added in v0.1.1
ChangeBook replaces the book name in the dnote config file
func CheckFileExists ¶ added in v0.1.1
CheckFileExists checks if the file exists at the given path
func GenerateConfigFile ¶
func GenerateConfigFile() error
func GenerateNoteID ¶ added in v0.1.0
func GenerateNoteID() string
func GetConfigPath ¶
func GetCurrentBook ¶ added in v0.1.0
func GetDnotePath ¶
func GetDnoteUpdatePath ¶
func GetYAMLDnoteArchivePath ¶ added in v0.1.0
func ReadNoteContent ¶ added in v0.1.0
ReadNoteContent reads the content of dnote
func TouchDnoteFile ¶
func TouchDnoteFile() error
func TouchDnoteUpgradeFile ¶
func TouchDnoteUpgradeFile() error
func WriteConfig ¶ added in v0.1.0
func WriteDnote ¶ added in v0.1.0
WriteDnote persists the state of Dnote into the dnote file
Types ¶
type Config ¶ added in v0.1.0
func ReadConfig ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.