Skip to content
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

Implement Shell(prefix_with=[arg1, arg2]) #1

Open
jroose opened this issue Feb 2, 2021 · 0 comments
Open

Implement Shell(prefix_with=[arg1, arg2]) #1

jroose opened this issue Feb 2, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@jroose
Copy link
Owner

jroose commented Feb 2, 2021

As an alternative to the built-in 'user=' implementation I should add an optional Shell() instance parameter called prefix_with() that supplies arguments to be prefixed before running commands. For example this could be useful as an alternative implementation to the 'user=' argument to sh.command() that prefixes commands with sudo. It could also come in handy when working with chroot environments by causing all commands inside a specific Shell() instance to run within the chroot by prefixing commands with ['chroot', mount_point].

@jroose jroose added the enhancement New feature or request label Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant