Feature Toggles
Resources can be imported separately to your config file with the cli flag -r
or -resources
, which is a useful way
to switch out resources with common names based on your chosen environment. For example, with a main configuration file
config.yaml
:
And then two resource files, one stored at the path ./staging/request.yaml
:
And another stored at the path ./production/request.yaml
:
We can select our chosen resource by changing which file we import, either running:
Or:
These flags also support wildcards, which allows you to import an entire directory of resource files like
wombat -r "./staging/*.yaml" -c ./config.yaml
. You can find out more about configuration resources in
the resources document.