-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerShell Help for Microsoft.WinGet.Client #4674
Conversation
Adding the base help files generated by platyPS.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…geManager.md Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
…ge.md Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More comments and suggestions.
More to come tomorrow.
src/PowerShell/Help/Microsoft.WinGet.Client/Find-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Find-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Find-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Find-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Find-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetPackage.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More changes and comments. One more batch to follow.
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetSource.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Find-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Set-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Set-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Set-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final review pass. See comments and suggestions.
src/PowerShell/Help/Microsoft.WinGet.Client/Test-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Test-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Test-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Test-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Test-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Update-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Update-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Update-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Update-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Update-WinGetPackage.md
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
|
||
This command uninstalls a WinGet package from your computer. The command includes parameters to | ||
specify values used to search for installed packages. By default, all string-based searches are | ||
case-insensitive substring searches. Wildards are not supported. You can change the search behavior |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case-insensitive substring searches. Wildards are not supported. You can change the search behavior | |
case-insensitive substring searches. Wildcards are not supported. You can change the search behavior |
|
||
### -Custom | ||
|
||
Use this paramater to pass additional arguments to the installer. The parameter takes a single |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this paramater to pass additional arguments to the installer. The parameter takes a single | |
Use this parameter to pass additional arguments to the installer. The parameter takes a single |
This command searches the packages installed on your system and installs a newer version of the | ||
matching WinGet package. The command includes parameters to specify values used to search for | ||
packages in the configured sources. By default, the command searches all sources. By default, all | ||
string-based searches are case-insensitive substring searches. Wildards are not supported. You can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string-based searches are case-insensitive substring searches. Wildards are not supported. You can | |
string-based searches are case-insensitive substring searches. Wildcards are not supported. You can |
|
||
### -Custom | ||
|
||
Use this paramater to pass additional arguments to the installer. The parameter takes a single |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this paramater to pass additional arguments to the installer. The parameter takes a single | |
Use this parameter to pass additional arguments to the installer. The parameter takes a single |
|
||
### -Log | ||
|
||
Specify log location for uninstall. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify log location for uninstall. | |
Specify the location for the installer log. The value can be a fully-qualified or relative path and | |
must include the file name. For example: `$env:TEMP\package.log`. |
|
||
### -Log | ||
|
||
Specify the location for the installer log to be written. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify the location for the installer log to be written. | |
Specify the location for the installer log. The value can be a fully-qualified or relative path and | |
must include the file name. For example: `$env:TEMP\package.log`. |
src/PowerShell/Help/Microsoft.WinGet.Client/Find-WinGetPackage.md
Outdated
Show resolved
Hide resolved
src/PowerShell/Help/Microsoft.WinGet.Client/Export-WinGetPackage.md
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
|
||
### -Argument | ||
|
||
The URL or UNC of WinGet source. The source must respond with the WinGet REST source API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the WinGet REST source API
Doesn't this also support the preindexed sources?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the description to include preindexed sources
- InstallerHashOverride | ||
- LocalArchiveMalwareScanOverride | ||
- ProxyCommandLineOptions | ||
- DefaultProxy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I had seen a previous comment about this, but DefaultProxy
is not a flag that is enabled/disabled, so I don't think it works with this cmdlet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed DefaultProxy from this list.
src/PowerShell/Help/Microsoft.WinGet.Client/Export-WinGetPackage.md
Outdated
Show resolved
Hide resolved
|
||
This command lists all of the packages installed on your system. The output includes packages | ||
installed from WinGet sources and packages installed by other methods. Packages that have package | ||
identifiers starting with `MSIX` or `ARP` were not installed from a WinGet source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think there are cases where a package installed from a WinGet source may not be correlated back to it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't address this as I'm not quite sure how to best explain this.. 😓
src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetUserSettings.md
Outdated
Show resolved
Hide resolved
|
||
This command displays the WinGet settings for the current user. The settings are stored in | ||
`$env:LOCALAPPDATA\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json`. | ||
This file only exists if you have change a user setting using the `Set-WinGetUserSettings` command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not the only way settings can be changed. Maybe "...if you have changed a user setting, for example, using..."?
### -Override | ||
|
||
Specify arguments to pass to the installer as a single string. To pass multiple arguments, include | ||
the arguments in the string. The arguments must be provided in the format expected by the installer. | ||
If the string contains spaces, it must be enclosed in quotes. This string overrides the arguments in | ||
the package manifest. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we clarify the difference with -Custom
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated description for both -Custom and -Override to clarify the difference
This command removes a configured WinGet source. By default, there are two sources registered: | ||
`msstore` and `winget`. You can add more sources using `Add-WinGetSource`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has to be run as admin, right? Maybe we should clarify it like for other commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added description that add/remove source commands must be run as admin.
|
||
## DESCRIPTION | ||
|
||
This command repairs the installation of the WinGet client on your computer by installing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes me think it only works if it is already installed, but it can also be used to install if it is missing, right? Should we clarify?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated description.
/azp run |
- InstallerHashOverride | ||
- LocalArchiveMalwareScanOverride | ||
- ProxyCommandLineOptions | ||
- DefaultProxy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- DefaultProxy |
Needs to be removed in Disable cmdlet as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will address this in another PR
If people want to enforce "please use contractions", this comment includes the rough changes: #4674 (comment) |
Resolves: #4673
Related to:
Microsoft Reviewers: Open in CodeFlow