Add command builder with escaped user input by AmelBawa-msft · Pull Request #5982 · microsoft/winget-cli

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@AmelBawa-msft

Copy link

Contributor

@AmelBawa-msft AmelBawa-msft commented

Jan 15, 2026

edited

Loading


  • 🧱 Add a command builder with escaped user input
  • ⚠️ Unfortunately, using StartInfo.ArgumentList is not available in net48, hence manually implementing the escape method.
  • 🧪 Added unit tests
Microsoft Reviewers: Open in CodeFlow

@AmelBawa-msft AmelBawa-msft marked this pull request as ready for review

January 21, 2026 23:51

@AmelBawa-msft AmelBawa-msft requested a review from a team as a code owner

January 21, 2026 23:51

@github-actions

This comment has been minimized.

Copy link

Member

@JohnMcPMS JohnMcPMS left a comment

Choose a reason for hiding this comment

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

Add the tests to the pipeline as well so that we get coverage.

AmelBawa-msft reacted with thumbs up emoji

JohnMcPMS

JohnMcPMS previously approved these changes Jan 23, 2026

@AmelBawa-msft AmelBawa-msft merged commit db48e47 into microsoft:master

Jan 23, 2026

9 checks passed

@AmelBawa-msft AmelBawa-msft deleted the user/amelbawa/pwsh-fix branch

January 23, 2026 18:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JohnMcPMS JohnMcPMS JohnMcPMS approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@AmelBawa-msft @JohnMcPMS