microsoft / microsoft/winget-cli

Add "--exclude" option to winget-cli

Open
#4,650 11 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

The --exclude option is designed to provide users with more control over their command line operations. This feature allows users to specify a list of IDs that should be excluded from the operation. This is particularly useful in scenarios where the user wants to apply an operation to a large set of items but needs to exclude a few specific ones.

For example, if a user is performing a bulk delete operation but wants to preserve certain items, they could use the --exclude ids option to specify the IDs of the items to be preserved. This saves the user from having to manually separate these items before performing the operation.

Proposed technical implementation details

The --exclude option could be implemented as a command line argument that accepts a list of IDs. These IDs would then be used to filter out the corresponding items from the operation. The key point is that the --exclude ids option provides a way for users to specify a list of IDs to be excluded from the operation, and this list is then used to filter out the corresponding items before the operation is performed.

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

No files, tests, or specific commands are identified in the issue. Start by reviewing winget-cli's command-line argument handling and determine which operations should accept the option, how IDs are parsed, and where results are filtered. Done means the supported operations consistently exclude the requested IDs and have coverage for the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.