microsoft / microsoft/winget-cli
Search filters for package elevation requirements
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Description of the new feature/enhancement
I would like a setting to specify I want packages that run in "user" mode. My account doesn't have administrator rights on the machine. I don't want to have them show up in search results by default if I have enabled that setting.
"searchFilters": {
"elevationRequirement": {
"elevationRequired": "exclude"
"elevationProhibited": "include"
"elevatesSelf": "exclude"
}
}
The default behavior is to include.
I would also like the ability to filter search results by packages that require or prohibit administrator mode. That way I can still search across all packages to be informed of what is available that I may not be able to install as a user or an administrator.
winget search <query> --elevationRequired - includes "elevatesSelf"
winget search <query> --elevationProhibited
Proposed technical implementation details (optional)
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are identified in the issue. Start by locating the search filter configuration and the winget search option handling, then determine how elevation metadata is represented; done means configuration and command-line filters produce the requested inclusion and exclusion 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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100