Open jmattaa opened 4 days ago
Sounds like a good idea. Should be pretty standard to implement.
So there will be an abstracted Config service that gets us the required points you mentioned, instead of reading them from cli
The precedence should be: cli flags > git_dir > env vars
You can work on this if you would like to. The only points that are subject to change is the API itself for the config. But I agree that we should start with JSON
It would've been nice to have a configuration file for a git project (placed in for example
GIT_DIRECTORY/lumen_config
), where one could customise the tool to be for a specific project. My idea is to be able to customise options such as:conventional_types
to match a projects guidlines.A config file could look something like
And an implementation of this in the project could look like
I feel that this could be handy, for me but I'm unsure if it will be usable, it would be nice to have the option to do that. I could open a pr and implement something resembling this idea.
(I just saw that the project relies on serde_json, so the config could even be written in json)