rhysd / notes-cli

Small markdown note taking CLI app playing nicely with your favorite editor and other CLI tools
MIT License
218 stars 26 forks source link

add MismatchCategoryError #6

Closed hiroebe closed 4 years ago

hiroebe commented 4 years ago

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.

rhysd commented 4 years ago

Thank you for adding this. Please ignore CI failure since it's my bad.

hiroebe commented 4 years ago

Thanks!