dina-web-nrm / collections-api

dina-web (dina-datamodel)
0 stars 0 forks source link

Loading user data from the command line and settings from a config file #1

Open mskyttner opened 8 years ago

mskyttner commented 8 years ago

Suggest using https://commons.apache.org/proper/commons-cli/ as it provides great CLI tool options like supporting standard GNU like long options such as "--help" and "-h" etc. See for example: https://github.com/Inkimar/commons_cli_ex. Also, credentials and other connection settings (endpoints, oauth credentials) should be loaded from a config file, ie dina.cfg, like the CollectionBatchTool does.

mskyttner commented 7 years ago

There is now a good example of supporting option at https://github.com/Inkimar/commons_cli_ex/blob/master/src/main/java/se/zanzibar/example/testingcli/Startup.java

Currently, the -h, --url and --infile options (the existing options in the current KeycloakAdmin client) would be nice to have support for.