microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.97k stars 1.43k forks source link

Add settings for accepting source and package agreements #2404

Open denelon opened 2 years ago

denelon commented 2 years ago

Description of the new feature / enhancement

Some users have asked to simplify accepting source agreements and package agreements.

Typing "--accept-source-agreements" and "--accept-package-agreements" isn't everyone's favorite thing to do.

Note: The argument completer (tab completion) saves typing in PowerShell.

Proposed technical implementation details

Add settings for the "winget", and "msstore" source to accept agreements.

Consider how agreements for other sources and packages could be handled in settings. There are likely to be edge cases for sources that aren't configured, or settings that may have been misconfigured.

majkinetor commented 1 year ago

Argument completer still requires typing 5 chars each time. How about we get a single letter shortcut to accept both ?

Regarding configuration we could have something like 'default arguments' which goes beyond this setting. I would for example like to have --silent always on besides those two.

denelon commented 1 year ago

@majkinetor several of the "settings" will do things like set a "preference" or a "requirement". We're still discussing the best way to deal with agreements, "all-up".

Thanks for the feedback here! 😊

Trenly commented 1 year ago

[Policy] Area-Settings

rbarbrow commented 2 weeks ago

Winget upgrade --all should assume --accept-source-agreements --accept-package-agreements