Closed mdanish-kh closed 8 months ago
I would've loved to keep --info
but it looks like anything that I'll do to make that happen will involve me doing a very hacky implementation with the parser. And even then all edge cases may not be covered as was the case with wingetcreate foobar
here
I know we should try to align with winget-cli as much as possible but if we can achieve the same end result by simply adding a wingetcreate info command instead, that may be an easier solution. That would also make it easier for testing so we could verify what is displayed. Thoughts?
Sounds good. This will also make it easier in future to implement some common options for all commands (e.g. --log
, --open-logs
that are mentioned in a couple of issues here) since Info will now be a child of BaseCommand class
/azp run
/azp run
/azp run
/azp run
/azp run
/azp run
Having some issues with some internal builds, will investigate and check this PR in when it starts passing. Thanks for the awesome contribution @mdanish-kh!
(also, aka.ms links that you mentioned above are all now live)
This PR adds support for root options for the CLI and the following:
@ryfu-msft Can you kindly create these short URLs if you approve of them ☺️
https://aka.ms/winget-create-license → https://github.com/microsoft/winget-create/blob/main/LICENSE https://aka.ms/winget-create-privacy → https://github.com/microsoft/winget-create/blob/main/PRIVACY.md https://aka.ms/winget-create-3rdPartyNotice → https://github.com/microsoft/winget-create/blob/main/NOTICE.txt
Microsoft Reviewers: Open in CodeFlow