Add `--query` (shorthand `-q`) flag to all `atmos describe ` commands @aknysh (#920)
what
- Added
--query
(shorthand-q
) flag to allatmos describe <subcommand>
commands - Updated CLI command documentation to reflect new querying functionality
- Added examples for new query-based commands
why
- Query (and filter) the results of
atmos describe <subcommand>
commands using yq expressions - Before, an external
yq
orjq
binary was required to query/filter the results ofatmos describe
commands. With theyq
functionality now embedded in Atmos, installing theyq
binary is not required
examples
atmos describe component vpc -s plat-ue2-prod --query .vars
atmos describe component vpc -s plat-ue2-prod -q .vars.tags
atmos describe component vpc -s plat-ue2-prod -q .settings
atmos describe component vpc -s plat-ue2-prod --query .metadata.inherits
atmos describe stacks -q keys # this produces the same result as the native `atmos list stacks` command
atmos describe config -q .stacks.base_path
atmos describe workflows -q '.0 | keys'
atmos describe affected -q <yq-expression>
atmos describe dependents -q <yq-expression>