forked from AcademySoftwareFoundation/rez
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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 --graphHowever 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