I added MismatchCategoryError type, which is returned by LoadNote when the category of the note does not mach the category from its file path.
This enables the caller of LoadNote to distinguish it from other types of errors.
It is what I need to make a new subcommand notes tidy, which changes the file structure based on the category written in each note.
I added
MismatchCategoryError
type, which is returned byLoadNote
when the category of the note does not mach the category from its file path. This enables the caller ofLoadNote
to distinguish it from other types of errors.It is what I need to make a new subcommand
notes tidy
, which changes the file structure based on the category written in each note.