eval always namespaces the variable names, regardless of jmespath selection scope
bash-3.2$ cat test.yml
foo:
bar:
baz: "something"
bash-3.2$ python3 -m niet . test.yml
foo:
bar:
baz: something
bash-3.2$ python3 -m niet . test.yml -f eval
foo__bar__baz="something"
bash-3.2$ python3 -m niet .foo.bar test.yml
baz: something
bash-3.2$ python3 -m niet .foo.bar test.yml -f eval
foo_bar__baz="something"
bash-3.2$
i.e. expected output for:
python3 -m niet .foo.bar test.yml -f eval
would be
eval always namespaces the variable names, regardless of jmespath selection scope
i.e. expected output for:
would be