Skip to content
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

Merged
merged 58 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
801e0e3
Add platyPS generated help files
denelon Jul 24, 2024
22e095a
Move files to Microsoft.WinGet.Client
denelon Jul 24, 2024
17bb1d0
Document Add-WinGetSource
denelon Jul 25, 2024
b07eee7
fix spelling
denelon Jul 25, 2024
84ac4ff
fix spelling
denelon Jul 25, 2024
bc86036
Add Add-WinGetSource to Microsoft.WinGet.Client.md
denelon Jul 25, 2024
9e27d22
Modify example 1 Add-WinGetSource
denelon Jul 25, 2024
971f11c
Put example text below example
denelon Jul 25, 2024
5badcd5
remove previously acknowledged words that are now absent
denelon Jul 25, 2024
b94be9c
Update Assert-WinGetPackageManager
denelon Jul 25, 2024
670e681
Add descriptions to Microsoft.WinGet.Client
denelon Jul 25, 2024
ea7dd59
Update Disable-WinGetSetting
denelon Jul 25, 2024
497c9dc
fix spelling
denelon Jul 25, 2024
c358805
Update Disable-WinGetSettings
denelon Jul 25, 2024
32ab737
Update Export-WinGetPackage
denelon Jul 26, 2024
8f8ee78
Update Find-WinGetPackage
denelon Jul 26, 2024
6f86f45
Update Find-WinGetPackage
denelon Jul 26, 2024
2383aa5
Update Get-WinGetPackage
denelon Jul 26, 2024
324430f
Update-Get-WinGetSettings
denelon Jul 26, 2024
b6abcfb
Update Get-WinGetSource
denelon Jul 26, 2024
a484af6
Update-GetWinGetUserSettings
denelon Jul 26, 2024
9199ae3
Update Get-WinGetVersion
denelon Jul 26, 2024
4c93150
Update Install-WinGetPackage
denelon Jul 26, 2024
431f929
Updated Remove-WinGetSource
denelon Jul 29, 2024
174bd6d
repair initial
ryfu-msft Jul 29, 2024
46f1f91
Update Update-WinGetPackage
denelon Jul 29, 2024
cd7ee96
Update Uninstall-WinGetPackage
denelon Jul 29, 2024
9bc2f08
finish the rest of the cmdlets
ryfu-msft Jul 30, 2024
badd916
Merge branch 'PowerShellHelp' of https://github.com/denelon/winget-cl…
ryfu-msft Jul 30, 2024
e6cd16f
resolve and push changes
ryfu-msft Jul 30, 2024
d48abfa
Update Test-WinGetUserSettings
denelon Jul 30, 2024
a922bd1
Remove ProgressAction from syntax and descriptions
mdanish-kh Jul 31, 2024
4855e3a
Merge pull request #1 from mdanish-kh/removeProgressAction
denelon Jul 31, 2024
3f354f4
Merge branch 'master' into PowerShellHelp
denelon Jul 31, 2024
c94b752
Update spelling
denelon Jul 31, 2024
1fb3173
spelling
denelon Jul 31, 2024
3de666d
fix spelling
denelon Jul 31, 2024
d98528f
update spelling
denelon Jul 31, 2024
aed2778
update Add-WinGetSource
denelon Aug 1, 2024
b71ea2f
Update descriptions to present tense
denelon Aug 1, 2024
1f92ce8
Initial editorial improvements and markdownlint
denelon Aug 1, 2024
a95f845
fix spelling
denelon Aug 1, 2024
c08c4b0
spell exclude markdownlint file
denelon Aug 1, 2024
fe3b74b
Initial pass at formatting
denelon Aug 1, 2024
b87076f
Add ms.date
denelon Aug 1, 2024
1d3797d
fix typo
denelon Aug 1, 2024
7735d76
update spelling
denelon Aug 1, 2024
52bbc0b
Add title front matter
denelon Aug 1, 2024
919db64
Update src/PowerShell/Help/Microsoft.WinGet.Client/Add-WinGetSource.md
denelon Aug 7, 2024
acdc322
Update src/PowerShell/Help/Microsoft.WinGet.Client/Assert-WinGetPacka…
denelon Aug 7, 2024
3d92c94
Update src/PowerShell/Help/Microsoft.WinGet.Client/Export-WinGetPacka…
denelon Aug 7, 2024
180b988
Apply suggestions from code review
denelon Aug 7, 2024
0e6d287
Apply suggestions from code review
denelon Aug 8, 2024
e5f637c
resolve suggestions
ryfu-msft Aug 9, 2024
9162699
address final comments
ryfu-msft Aug 9, 2024
963931d
fix spelling
ryfu-msft Aug 9, 2024
b657d9b
address Flor's comments
ryfu-msft Aug 12, 2024
5f5aa91
fixSpelling
ryfu-msft Aug 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
^src/cpprestsdk/
^src/JsonCppLib/
^src/PowerShell/ExternalModules/PowerShellGet/2\.2\.5/Modules/
^src/PowerShell/Help/markdownlint.yaml$
^src/PureLib/
^src/SfsClient/
^src/UndockedRegFreeWinRT/
Expand Down
19 changes: 4 additions & 15 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ adml
admx
AFAIK
aicli
arning
ryfu-msft marked this conversation as resolved.
Show resolved Hide resolved
AICLIC
AKV
allusers
Expand Down Expand Up @@ -39,6 +40,7 @@ ASequence
ashpatil
Ashwini
ASwitch
Asn
ASYNCRTIMP
Atest
ATL
Expand Down Expand Up @@ -85,7 +87,6 @@ CLASSNOTREG
CLOSEAPP
cloudapp
clsctx
clsid
CMSG
cobertura
CODEOWNERS
Expand Down Expand Up @@ -135,11 +136,11 @@ dsc
DUPLICATEALIAS
dustojnikhummer
dvinns
ebug
ryfu-msft marked this conversation as resolved.
Show resolved Hide resolved
ecfr
ecfrbrowse
EFGH
efileresource
endregion
ENDSESSION
EQU
ERANGE
Expand All @@ -148,7 +149,6 @@ errmsg
ERRORONEXIT
errstr
ESRB
ests
etest
etl
execustom
Expand Down Expand Up @@ -256,7 +256,6 @@ ldcase
learnxinyminutes
lhs
LIBYAML
Linq
liv
liwpx
localizationpriority
Expand Down Expand Up @@ -328,12 +327,11 @@ myinstalldir
mylog
mysilent
mysilentwithprogress
nameof
mysource
Nami
nativehandle
NBLGGH
NESTEDINSTALLER
netfx
netlify
NETSDK
Newtonsoft
Expand All @@ -355,7 +353,6 @@ NOSEARCH
NOSEPARATOR
notalostreference
NOTAPROPERTY
notmatch
NOTIMPL
NOTRACK
NOUPDATE
Expand All @@ -370,7 +367,6 @@ ofile
oid
omus
onefuzz
ools
oop
opensource
OPTOUT
Expand All @@ -384,7 +380,6 @@ packageinuse
packageinusebyapplication
PACL
PARAMETERMAP
paramref
pathparts
Patil
pcb
Expand Down Expand Up @@ -459,7 +454,6 @@ Roblox
ronomon
Roronoa
rosoft
rowids
rowid
roy
RRF
Expand Down Expand Up @@ -532,8 +526,6 @@ TARG
taskhostw
tcs
TEMPDIRECTORY
Templating
templating
temppath
testexampleinstaller
thiscouldbeapc
Expand All @@ -544,7 +536,6 @@ tombstoned
transitioning
trimstart
ttl
typeparam
typedef
UCase
ucasemap
Expand All @@ -559,7 +550,6 @@ uninstallation
uninstaller
uninstallprevious
uninstalls
Unk
unknwn
Unknwnbase
UNMARSHALING
Expand All @@ -586,7 +576,6 @@ wcex
WDAG
webpages
Webserver
websites
website
wesome
wfsopen
Expand Down
109 changes: 109 additions & 0 deletions src/PowerShell/Help/Microsoft.WinGet.Client/Add-WinGetSource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
external help file: Microsoft.WinGet.Client.Cmdlets.dll-Help.xml
Module Name: Microsoft.WinGet.Client
ms.date: 08/01/2024
online version:
schema: 2.0.0
title: Add-WinGetSource
---

# Add-WinGetSource

## SYNOPSIS
Adds a new source.

## SYNTAX

```
Add-WinGetSource -Name <String> -Argument <String> [-Type <String>] [<CommonParameters>]
```

## DESCRIPTION

Adds a new source. A source provides the data for you to discover and install packages. Only add a
new source if you trust it as a secure location.

## EXAMPLES

### Example 1: Add new REST source named mysource

```powershell
Add-WinGetSource -Name mysource -Argument https://contoso.com/ -Type Microsoft.Rest
```
denelon marked this conversation as resolved.
Show resolved Hide resolved

This example adds a new REST source to WinGet named `mysource` with the root URL
`https://contoso.com/`. The source must respond with the WinGet REST source API.

## PARAMETERS

### -Argument

The URL or UNC of WinGet source. The source must respond with the WinGet REST source API.
Copy link
Member

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?

Copy link
Contributor

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


```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
```

### -Name

The name used to identify the WinGet source.

```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
```

### -Type

The type of the WinGet source. Most sources are `Microsoft.Rest`. The WinGet community repository
is `Microsoft.PreIndexed.Package`.

```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Remove-WinGetSource](Remove-WinGetSource.md)

[Reset-WinGetSource](Reset-WinGetSource.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
---
external help file: Microsoft.WinGet.Client.Cmdlets.dll-Help.xml
Module Name: Microsoft.WinGet.Client
ms.date: 08/01/2024
online version:
schema: 2.0.0
title: Assert-WinGetPackageManager
---

# Assert-WinGetPackageManager

## SYNOPSIS
Verifies that WinGet is installed properly.

## SYNTAX

### IntegrityVersionSet (Default)

```
Assert-WinGetPackageManager [-Version <String>] [<CommonParameters>]
```

### IntegrityLatestSet

```
Assert-WinGetPackageManager [-Latest] [-IncludePreRelease] [<CommonParameters>]
```

## DESCRIPTION

Verifies that WinGet is installed properly.

> [!NOTE]
> The cmdlet doesn't ensure that the latest version of WinGet is installed. It just verifies that
> the installed version of Winget is supported by installed version of the Microsoft.WinGet.Client
> module.

## EXAMPLES

### Example 1: Default usage

```powershell
Assert-WinGetPackageManager
```

If the current version of WinGet is installed correctly, the command returns without error.

### Example 2: Check if latest stable version is installed

```powershell
Assert-WinGetPackageManager -Latest
```

If the latest version of WinGet is compatible with the installed Microsoft.WinGet.Client module, the
command returns without error.

### Example 3: Check if latest preview version is installed

```powershell
Assert-WinGetPackageManager -IncludePreRelease
```

If the prerelease version of WinGet is compatible with the installed Microsoft.WinGet.Client module,
the command returns without error.

### Example 4: Check if specific version is installed

```powershell
Assert-WinGetPackageManager -Version v1.8.1911
```

If the specified version of WinGet is compatible with the installed Microsoft.WinGet.Client module,
the command returns without error.

## PARAMETERS

### -IncludePreRelease

Include preview versions of WinGet.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: IntegrityLatestSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -Latest

Verify that the latest version of WinGet is compatible with the installed version of the
Microsoft.WinGet.Client module.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: IntegrityLatestSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -Version

Verify that a specific version of WinGet is installed correctly.

```yaml
Type: System.String
Parameter Sets: IntegrityVersionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

### System.Management.Automation.SwitchParameter

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Get-WinGetVersion](Get-WinGetVersion.md)
Loading
Loading