external config file for default settings
Opened this issue · 3 comments
nop77svk commented
To allow users to use their own settings/options without specifying them all the time via CLI, add an XML/JSON-based config file to the CLI app. Priority of resolution then will be:
- CLI-supplied settings
- Config-file settings
- Hardcoded (C# code) settings
nop77svk commented
Both XML and JSON can be dealt with via annotations to the CLI class.
nop77svk commented
Search path for the config file should be
- %USERPROFILE%\AppData\Local\wtwd.config
- %USERPROFILE%\AppData\Roaming\wtwd.config
- %APP FOLDER%\wtwd.config
to allow for user-specific defaults.
In case multiple config files exist within the paths, prioritize them and merge their CLI values according to their priority.
nop77svk commented
The config file structure should be documented somehow. Either in github README or via CLI --help.