tohagan / cli-config

NodeJS API to assist command line apps reading and merging config objects from: defaults.json, ./<app>.json, process.argv, custom config
Other
6 stars 1 forks source link

Allow config files in ancestor directories. #2

Closed tohagan closed 10 years ago

tohagan commented 10 years ago

I'm considering adding an ancestor option that searches for config files in current and ancestor directories. The property can be a string to specific the config file name (e.g. '.myapprc') or true to use the default name '.<appname>rc'. The default will be false to ensure backward compatibility. Comments welcome.

Feel free to volunteer to fork and push this feature change. Thanks!

tohagan commented 10 years ago

Complete