ruyadorno/ntl

Configuration via file

darekkay opened this issue · 1 comments

Hi, thanks for this nice little utility :)

I'd like to configure ntl sytem-wide without the need of adding option parameters for each call, e.g. ntl -A -s 20. A bash alias would work, but something like a .ntlrc would be more convenient. Prettier uses cosmiconfig for this, so you get a lot of configuration methods:

  • A .prettierrc file, written in YAML or JSON, with optional extensions: .yaml/.yml/.json/.js.
  • A prettier.config.js file that exports an object.
  • A "prettier" key in your package.json file.

The configuration file will be resolved starting from the location of the file being formatted, and searching up the file tree until a config file is (or isn't) found.

What do you think about this?

hi @darekkay sorry for the very late response 😬

I think the idea is great and would def welcome a contribution to add support to it 😄

For reference to other people that might look into this issue, the "bash alias" would be something like:

alias ntl="ntl -A -s 20"

that you can add to your .bash_profile / .bashrc (or equivalent file) in order to have different global options.