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

--self #81

Open
mottosso opened this issue Jul 28, 2019 · 0 comments
Open

--self #81

mottosso opened this issue Jul 28, 2019 · 0 comments
Labels

Comments

@mottosso
Copy link
Owner

Goal

Facilitate easy exposure of the bleeding-rez commands from within a context.

Motivation

With --isolated, the parent environment is emptied from any references to the original rez command, but in some cases having those be present is useful, e.g. for use with --patch, --context and --graph.

We could simply add it to the request.

$ rez env bleeding_rez
> $ rez env --graph

However that's a lot to type and worse yet it may include a version that differs from the parent which may affect its ability to operate on the surrounding context and .rxt file, if e.g. the schema has changed.

Implemenation

Address the above issues with a --self argument, which would expand into bleeding_rez, including the version used to establish the context.

# bleeding_rez-2.40.0
$ rez env
> $ rez
# Command not found
> $ exit
$ rez env --self
> $ rez --version
# 2.40.0
mottosso added a commit that referenced this issue Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant