Skip to content

Commit

Permalink
Remove default parameter set to fix PS7 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardWolosky committed Jul 18, 2020
1 parent 640306c commit 86bba1f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions GitHubReleases.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ filter New-GitHubRelease
#>
[CmdletBinding(
SupportsShouldProcess,
DefaultParameterSetName='Elements',
PositionalBinding = $false)]
[OutputType({$script:GitHubReleaseTypeName})]
param(
Expand Down Expand Up @@ -480,7 +479,6 @@ filter Set-GitHubRelease
#>
[CmdletBinding(
SupportsShouldProcess,
DefaultParameterSetName='Elements',
PositionalBinding = $false)]
[OutputType({$script:GitHubReleaseTypeName})]
param(
Expand Down Expand Up @@ -639,7 +637,6 @@ filter Remove-GitHubRelease
#>
[CmdletBinding(
SupportsShouldProcess,
DefaultParameterSetName='Elements',
PositionalBinding = $false,
ConfirmImpact='High')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
Expand Down Expand Up @@ -783,9 +780,7 @@ filter Get-GitHubReleaseAsset
Downloads the asset 1234567890 to 'c:\users\PowerShellForGitHub\downloads\asset.zip' and
overwrites the file that may already be there.
#>
[CmdletBinding(
DefaultParameterSetName='Elements-List',
PositionalBinding = $false)]
[CmdletBinding(PositionalBinding = $false)]
[OutputType({$script:GitHubReleaseAssetTypeName})]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
param(
Expand Down Expand Up @@ -1023,7 +1018,6 @@ filter New-GitHubReleaseAsset
#>
[CmdletBinding(
SupportsShouldProcess,
DefaultParameterSetName='Elements',
PositionalBinding = $false)]
[OutputType({$script:GitHubReleaseAssetTypeName})]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
Expand Down Expand Up @@ -1225,7 +1219,6 @@ filter Set-GitHubReleaseAsset
#>
[CmdletBinding(
SupportsShouldProcess,
DefaultParameterSetName='Elements',
PositionalBinding = $false)]
[OutputType({$script:GitHubReleaseAssetTypeName})]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
Expand Down Expand Up @@ -1362,7 +1355,6 @@ filter Remove-GitHubReleaseAsset
#>
[CmdletBinding(
SupportsShouldProcess,
DefaultParameterSetName='Elements',
PositionalBinding = $false,
ConfirmImpact='High')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
Expand Down

0 comments on commit 86bba1f

Please sign in to comment.