Simplify usage of multiple config-files
Currently a clean install of OSDU CLI will rely on a configuration-file amply named "config" which is stored on a pre-defined location based on your OS. E.g. on my Mac it is /users/<user>/.osducli/config
. Creating multiple environment-configs is easily handled by having multiple files in this location. Now there are already some other files here, namely the state-file used for the default config and a msal-token cache in case you use that authentication-type. When switching between different configs you use the osdu config default
-command, which requires you to write manually the whole path and the name of the config-file you would like to use.
I propose two enhancements:
- the ability to refer to the config-file without using the entire path (and possibly with free naming, i.e. not relying on the
config
-part. - the ability to easy list the available configurations (aka environments/instances) you already have. E.g. like the
kubectl config get-contexts
-command