Background
I currently have a script which does some API data gathering. The script is deployed to two environments, test
and user
. Each environment has different settings which I have created the respective configuration files. I am currently migrating my project to use the hydra-core
package.
Objective
If possible I would like configure Hydra as such. Load all the configuration files from either the test
or user
. The default should be the test
environment unless specified via CLI to load the user
environment.
Current Configuration Structure
Project Root
|
├── config
│ ├── config.yaml
│ ├── test
│ │ ├── config1.yaml
│ │ ├── config2.yaml
│ │ ├── config3.yaml
│ │ └── config4.yaml
│ └── user
│ ├── config1.yaml
│ ├── config2.yaml
│ ├── config3.yaml
│ └── config4.yaml
Current Default Configuration - config.yaml
defaults:
- test: [config1.yaml, config2.yaml, config3.yaml, config4.yaml]
How would I override the above default via the CLI?