microsoft / microsoft/winget-cli

Parsing Request/Issue - Two Spaces instead of One

Open
#2,018 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Output Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the winget CLI output shown in the issue and inspect where values are separated and rendered. The change is done when objects are separated by two spaces and the resulting output can be parsed consistently without altering other formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.