·
2 commits
to main
since this release
feat: support environments with hyphens Corey Zuares (@czuares) (#37)
## what * Quote `env` so `jq` interprets it properly as a keywhy
- We have a use case where our preview environments contain a hyphen
- The cleanup step fails because
jqmisinterprets the key
% echo '{"preview-foo": "deploy/preview"}' | jq -cr '.preview-foo'
jq: error: foo/0 is not defined at <top-level>, line 1, column 10:
.preview-foo
^^^
jq: 1 compile errorvs.
% echo '{"preview-foo": "deploy/preview"}' | jq -cr '."preview-foo"'
deploy/preview