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

fix: Properly propagate quotes #1626

Merged
merged 6 commits into from
Jan 12, 2024
Merged

fix: Properly propagate quotes #1626

merged 6 commits into from
Jan 12, 2024

Conversation

aswasif007
Copy link
Contributor

Description

Fix an issue with propagating quotes to wp shell. Here is the issue with current implementation:

If you execute vip @app.env -- wp --foo='bar1 "bar2" "bar3"' the command that gets executed in the shell is: vip @app.env -- wp --foo="bar1 "bar2" "bar3"". This PR fixes that quoting issue.

@chriszarate
Copy link
Member

@aswasif007 I added some failing test cases. Revert if I am misunderstanding the issue. I do wonder if we should fix this issue centrally in Parker rather than parsing and validating in the client.

src/lib/cli/format.ts Outdated Show resolved Hide resolved
@aswasif007 aswasif007 force-pushed the bb8-10702/fix/quote-issue branch from 02ca1ac to 5941cca Compare January 12, 2024 03:53
Copy link
Member

@chriszarate chriszarate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks!

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@aswasif007 aswasif007 merged commit 08f1b28 into trunk Jan 12, 2024
14 checks passed
@aswasif007 aswasif007 deleted the bb8-10702/fix/quote-issue branch January 12, 2024 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants