microsoft / microsoft/winget-create

Don't show first time telemetry notice in `wingetcreate show` command

Open
#630 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature
Dominant language
C#
Stars
651
Forks
114
Avg merge
7h 52m
Merged PRs (30d)
3

Description

Description of the new feature / enhancement

Maybe applies to other commands as well that require automation friendly output. Right now, if the user settings JSON file has not been created in the host machine, wingetcreate will output the telemetry notice in the stdout of the commands, making it noisy to deal with in automation scenarios.

Current output (no settings JSON initialized)

~ wingetcreate show Microsoft.PowerShell

Telemetry Settings
------------------
The Windows Package Manager Manifest Creator collects usage data in order to improve your experience.
The data is anonymous and collected only by Microsoft.
By default, telemetry is enabled but can be disabled by running `wingetcreate settings` and editing your settings file.
Installer Manifest:
{
  ...
}

Default Locale (en-US) Manifest:
{
   ...
}

Version Manifest:
{
   ...
}

To get around it in automation scenarios, one has to first run wingetcreate settings command, so that the settings file in initialized, and then run subsequent commands for a parse-able output

Proposed technical implementation details

No response

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 with the wingetcreate show command and the wingetcreate settings command's settings-initialization path, then reproduce the first-run output on a host without a settings JSON file. Done means automation-friendly command output no longer includes the telemetry notice, including any other commands identified as having the same behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.