Skip to content

Conversation

@rpkilby
Copy link
Contributor

@rpkilby rpkilby commented May 23, 2017

No description provided.

@bitprophet bitprophet added this to the 1.0 milestone May 24, 2017
@rpkilby rpkilby changed the title Add context manager for prefixing calls to run/sudo Port prefix/cd context managers for run/sudo May 24, 2017
For example, one of the most common uses of this tool is with the
``workon`` command from `virtualenvwrapper
<http://www.doughellmann.com/projects/virtualenvwrapper/>`_::
Copy link
Member

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:]]
Copy link
Member

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.

@rpkilby
Copy link
Contributor Author

rpkilby commented May 25, 2017

All passing on CI now.

@bitprophet
Copy link
Member

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... 😒

@rpkilby
Copy link
Contributor Author

rpkilby commented May 31, 2017

No worries. I'm aware of the very many plates you have 😄

@bitprophet bitprophet merged commit c8101f7 into pyinvoke:master Jun 2, 2017
bitprophet added a commit that referenced this pull request Jun 2, 2017
@bitprophet
Copy link
Member

Image

Also, realized there were two other open tickets about this, that I can now close. Woo! Thanks yet again.

bitprophet added a commit that referenced this pull request Jun 5, 2017
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.
@rpkilby rpkilby deleted the ctx-prefix branch June 11, 2017 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants