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

tiltfile: add shlex.quote #3720

Merged
merged 3 commits into from Aug 26, 2020
Merged

tiltfile: add shlex.quote #3720

merged 3 commits into from Aug 26, 2020

Conversation

landism
Copy link
Member

@landism landism commented Aug 24, 2020

Problem

Tilt provides no mechanism for users to construct shell commands that correctly handle input containing special characters.
This mostly hasn't a problem since most of these have pretty limited sets of inputs, but when writing extensions, it'd be nice to be able to handle, e.g., a user passing a value containing a space.

Solution

Add shlex.quote, a la Python's.

@landism landism requested review from nicks and maiamcc August 24, 2020 14:56
@landism landism merged commit 79e500a into master Aug 26, 2020
@landism landism deleted the matt/shlex_quote branch August 26, 2020 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants