Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuration files #5

Open
chahuistle opened this issue Jul 27, 2018 · 0 comments
Open

Add support for configuration files #5

chahuistle opened this issue Jul 27, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@chahuistle
Copy link
Contributor

chahuistle commented Jul 27, 2018

We are expanding our Java-based toolset, so it might make sense to use a generic way to read configuration files.

In order for this to be generic enough, default configuration files should be named after the tool they are related to. For instance, a tool named nexus-listener-service should have its default configuration file under ~/.nexus-listener-service.config.

To make things simple, we can make all config files to be yml files and implement this as part of the ToolExecutor mini framework. The framework would read configuration files upon tool start-up, use the annotated ...Command class to map each entry in the configuration file (if any) to its corresponding picocli parameter to create an instance of an AbstractCommand. Parameters given via the command line would of course override values found in the configuration file.

@chahuistle chahuistle added the enhancement New feature or request label Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant