-
Notifications
You must be signed in to change notification settings - Fork 384
Port prefix/cd context managers for run/sudo #446
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
Conversation
invoke/context.py
Outdated
| For example, one of the most common uses of this tool is with the | ||
| ``workon`` command from `virtualenvwrapper | ||
| <http://www.doughellmann.com/projects/virtualenvwrapper/>`_:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now https://virtualenvwrapper.readthedocs.io so we should probs update it!
| if path.startswith('~') or path.startswith('/'): | ||
| break | ||
|
|
||
| paths = [path.replace(' ', '\ ') for path in self.command_cwds[i:]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forget offhand but we may want to see if there's a stronger "escape this path" function somewhere we can reuse - think escaping tildes or slashes in filenames and dumb shit like that.
|
All passing on CI now. |
|
a) your avatar is hilarious in a Github context, b) haven't forgotten about this! Still doing post-PyCon triage but I have this open in a "deal with it soon" browser tab... 😒 |
|
No worries. I'm aware of the very many plates you have 😄 |
As-is, was causing issues in Fabric 2. This should help. Also now documenting the (tweaked) config value that was implicitly used in #446's addition of Context._runner.
No description provided.