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

Parsing Request/Issue - Two Spaces instead of One #2018

Open
narabug opened this issue Mar 11, 2022 · 4 comments
Open

Parsing Request/Issue - Two Spaces instead of One #2018

narabug opened this issue Mar 11, 2022 · 4 comments
Labels
Area-Output Issue related to CLI output Issue-Feature This is a feature request for the Windows Package Manager client.

Comments

@narabug
Copy link

narabug commented Mar 11, 2022

Description of the new feature / enhancement

If you returned data with two spaces between objects instead of a single space, we could easily parse the output. With only one space, parsing cannot consistently return accurate results.

For example:
winget Ouput

parsed
because you are only appending a single space at the end of a value in the string, parsing becomes exceptionally difficult.

Proposed technical implementation details

Appending two space characters would make parsing this output significantly easier and more accurate.

@narabug narabug added the Issue-Feature This is a feature request for the Windows Package Manager client. label Mar 11, 2022
@ghost ghost added the Needs-Triage Issue need to be triaged label Mar 11, 2022
@denelon denelon removed the Needs-Triage Issue need to be triaged label Mar 11, 2022
@denelon
Copy link
Contributor

denelon commented Mar 11, 2022

I'll keep this Issue open for now, but I think we're looking at a different approach. For PowerShell we're going to call the COM API to get "rich" objects back. We're likely to have something in the CLI like "--json" to give output that is easier to format.

@jason-amick
Copy link

Is there an update to when there will be an update to this issue?

@denelon
Copy link
Contributor

denelon commented Jan 26, 2023

We've released the first couple of preview versions of the PowerShell module.

There is active discussion and development in progress"

@Trenly
Copy link
Contributor

Trenly commented Jun 16, 2023

[Policy] Area-Output

@microsoft-github-policy-service microsoft-github-policy-service bot added the Area-Output Issue related to CLI output label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Output Issue related to CLI output Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

4 participants