-
Notifications
You must be signed in to change notification settings - Fork 58
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
CLI missing argument for targets #334
Comments
👍 |
When going over the amount of kwargs which needed to be set I tested a more global approach thanks to @BigRoy. Instead following the trail of Snippet: if kwargs.targets:
os.environ["PYBLISH_TARGETS"] = os.pathsep.join(kwargs.targets) In the # Register targets for current session
for t in os.environ.get("PYBLISH_TARGETS", "").split(os.pathsep):
if t:
register_target(t) I did however implement a Any thoughts on this approach? |
Full code can be viewed here: |
Issue:
We have setup a publishing approach which uses
targets
so we only get those plugins when thetarget
is set toX
. When attempting to runpyblish publish --targets X
we are notified that there is no such option as --targets.After looking in the code we found that the publish function has the keyword argument
targets
but the CLI module has no integration of it.Motivation
Update CLI to support targets
The text was updated successfully, but these errors were encountered: