-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Global site packages: add query and force-set options #181
Comments
My initial thought is that we could leave the current bare I'm not sure I understand the benefit of querying the status. Presumably the idea is to make sure the state is set on or off as desired in that moment, at which point it would probably make more sense to just set it on or off (even if it's already in that state). |
Thanks for the feedback.
Yes, that works as well. My main problem with the current behavior is that "toggle" is really not what I would expect from this command if knowing nothing about it. But backwards compatibility should be maintained.
Indeed. The operation is really inexpensive so just forcing the state is simple enough. Querying is what I would expect from the current command since it has no verb/action but this as probably no real use case. I can work on this once #173 is merged. |
Hi Etienne. Since your previous PR has been merged, so you want to submit a PR for the other functionality discussed here? |
Hi Etienne. Once you are ready to work on querying the status (as discussed above), let me know so we can re-open this issue. Cheers! 👋 |
Sorry for the very long delay. I finally prepared a PR for this feature #193. Thanks for your patience @justinmayer! |
Feature Request
While working on #173, my main problem with
vf globalpackages
came up again: toggling is really not the most ergonomic interface to this setting. Usually, I know what I want to do: enabling or disabling global site packages.The current (toggling) behavior is compatible with virtualenvwrapper and should therefore remain the default. What about extra options for query and force-set?
vf globalpackages -s|--status
: query status -> true|falsevf globalpackages true|false
: set status explicitlyFor the query,
-q
is not an option since it should be reserved for--quiet
(could be added on the same occasion, see virtualenvwrapper).Alternatively, dropping the virtualenvwrapper compatibility,
vf globalpackages
could display the status andvf globalpackages toggle
would toggle the setting.Comments most welcome!
The text was updated successfully, but these errors were encountered: