tbroadley/spellchecker-cli

Configuration file for command line options

gadhagod opened this issue · 4 comments

I was wondering if there was a file in which I could keep all command line options, similar to the way Mocha does it. This could be useful in cases where there are a bunch of files to be checked, words to be ignored, and more. Kinda like:

{
  "files": ["src/index.md", "src/test.md"],
  "ignore": ["yeet"],
  "language": "en-GB"
}

This way you wouldn't have to keep remembering the files to be checked and other options.

By the way, this tool is super useful! Thanks for making it.

Thanks for the issue! I'm glad you're finding this tool useful 🙌

I like your suggestion - currently, the tool doesn't support reading options from a file. The pattern Mocha uses seems like a good one to follow. I'll work on adding support for at least YAML configuration this morning.

Just merged #72 and released v4.6.0!

Only YAML is supported for now, but I just opened #73 to track adding support for more file formats.

Wow, thanks for doing this! I can open a PR making it json(c)-compatible.