# Functions
CheckUpdate triggers update if needed.
DeleteSystem delets the given system record.
GetBookUUID returns a uuid of a book given a label.
GetCipherKey retrieves the cipher key and decode the base64 into bytes.
GetConfigPath returns the path to the dnote config file.
GetDnoteTmpContentPath returns the path to the temporary file containing content being added or edited.
GetEditorInput gets the user input by launching a text editor and waiting for it to exit.
GetSystem scans the given system configuration record onto the destination.
GetValidSession returns a session key from the local storage if one exists and is not expired If one does not exist or is expired, it prints out an instruction and returns false.
InitFiles creates, if necessary, the dnote directory and files inside.
InitSystem inserts system data if missing.
InsertSystem inserets a system configuration.
LogAction logs action and updates the last_action.
NewBook constructs a book with the given data.
NewNote constructs a note with the given data.
ReadConfig reads the config file.
SanitizeContent sanitizes note content.
UpdateSystem updates a system configuration.
UpsertSystem inserts or updates a system configuration.
WriteConfig writes the config to the config file.
# Variables
ConfigFilename is the name of the config file.
TmpContentFilename is the name of the temporary file that holds editor input.
# Type aliases
RunEFunc is a function type of dnote commands.