flyingcircusio / batou

batou is a universal, fractal deployment utility using Python.
https://batou.readthedocs.org
Other
47 stars 12 forks source link

Feature request: Let batou return requested environment value in the commandline #448

Open nichmoe opened 3 months ago

nichmoe commented 3 months ago

The requested feature could look something like this:

% batou return dev component.variable_A
value_of_variable_A

You specify the environment and the variable. Batou return the value as a string, similar to the Jinja implementation.

Usecase 1: Check for the value without having to look for defaults or definitions in the environments. This saves time and gives certainty.

Usecase 2: This can be part of a script. Then you can much more easily define checks that are part of a deployment pipeline.