Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rez config --json FIELD #1064

Merged

Conversation

j0yu
Copy link
Contributor

@j0yu j0yu commented Apr 16, 2021

Simple addition to allow for

rez config --json platform_map
# {"os": {"CentOS-(\\d+)\\.(\\d+)(\\.(\\d+))?": "CentOS-\\1"}}

# Serialising for usage in another clean shell/environment e.g. docker
docker run --env REZ_PLATFORM_MAP_JSON="$(rez config --json platform_map)" centos:7

Added

  • --json flag to rez-config that will JSON format the output if the FIELD given is a dict/list

@nerdvegas nerdvegas merged commit a181a45 into AcademySoftwareFoundation:master May 4, 2021
@j0yu j0yu deleted the rez-config-json-option branch May 4, 2021 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants