Skip to content

Commit 0148071

Browse files
committed
20231031B
1 parent ac3c3d1 commit 0148071

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

hugoalh.GitHubActionsToolkit/module/artifact.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Function Import-Artifact {
119119
Switch ($PSCmdlet.ParameterSetName) {
120120
'All' {
121121
Invoke-GitHubActionsNodeJsWrapper -Name 'artifact/download-all' -Argument $Argument |
122-
Write-Output -NoEnumerate
122+
Write-Output
123123
}
124124
'Single' {
125125
$Argument.('name') = $Name

hugoalh.GitHubActionsToolkit/module/command-file.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Function Get-FileCommand {
130130
Throw "``$CurrentLine`` is not a valid file command content!"
131131
}
132132
$Result |
133-
Write-Output -NoEnumerate
133+
Write-Output
134134
}
135135
<#
136136
.SYNOPSIS

hugoalh.GitHubActionsToolkit/module/internal/nodejs-wrapper.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Function Invoke-NodeJsWrapper {
9595
Throw $Result.Reason
9696
}
9797
$Result.Result |
98-
Write-Output -NoEnumerate
98+
Write-Output
9999
}
100100
Catch {
101101
Write-Error -Message "Unable to successfully invoke the NodeJS wrapper ``$Name``: $_" -Category 'InvalidData'

hugoalh.GitHubActionsToolkit/module/markup.psm1

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Convert from a CSVM-formatted string.
88
CSVM string that need to convert from.
99
.PARAMETER AsHashtable
1010
Whether to output as a collection of hashtables instead of a collection of objects.
11-
.PARAMETER NoEnumerate
12-
Whether to prevent enumerates the output.
1311
.OUTPUTS
1412
[Hashtable[]] Result as hashtables.
1513
[PSCustomObject[]] Result as objects.
@@ -20,8 +18,7 @@ Function ConvertFrom-CsvM {
2018
[OutputType([PSCustomObject[]], ParameterSetName = 'PSCustomObject')]
2119
Param (
2220
[Parameter(Mandatory = $True, Position = 0, ValueFromPipeline = $True)][AllowEmptyString()][AllowNull()][Alias('Input', 'Object')][String]$InputObject,
23-
[Parameter(Mandatory = $True, ParameterSetName = 'Hashtable')][Alias('ToHashtable')][Switch]$AsHashtable,
24-
[Switch]$NoEnumerate
21+
[Parameter(Mandatory = $True, ParameterSetName = 'Hashtable')][Alias('ToHashtable')][Switch]$AsHashtable
2522
)
2623
Process {
2724
$InputObject -isplit '\r?\n' |
@@ -33,7 +30,7 @@ Function ConvertFrom-CsvM {
3330
($PSCmdlet.ParameterSetName -ieq 'Hashtable') ? $Result : ([PSCustomObject]$Result) |
3431
Write-Output
3532
} |
36-
Write-Output -NoEnumerate:($NoEnumerate.IsPresent)
33+
Write-Output
3734
}
3835
}
3936
<#
@@ -45,8 +42,6 @@ Convert from a CSVS-formatted string.
4542
CSVS string that need to convert from.
4643
.PARAMETER AsHashtable
4744
Whether to output as a collection of hashtables instead of a collection of objects.
48-
.PARAMETER NoEnumerate
49-
Whether to prevent enumerates the output.
5045
.OUTPUTS
5146
[Hashtable[]] Result as hashtables.
5247
[PSCustomObject[]] Result as objects.
@@ -57,15 +52,14 @@ Function ConvertFrom-CsvS {
5752
[OutputType([PSCustomObject[]], ParameterSetName = 'PSCustomObject')]
5853
Param (
5954
[Parameter(Mandatory = $True, Position = 0, ValueFromPipeline = $True)][AllowEmptyString()][AllowNull()][Alias('Input', 'Object')][String]$InputObject,
60-
[Parameter(Mandatory = $True, ParameterSetName = 'Hashtable')][Alias('ToHashtable')][Switch]$AsHashtable,
61-
[Switch]$NoEnumerate
55+
[Parameter(Mandatory = $True, ParameterSetName = 'Hashtable')][Alias('ToHashtable')][Switch]$AsHashtable
6256
)
6357
Process {
6458
$Null = $InputObject -imatch ';'
6559
(ConvertFrom-Csv -InputObject $InputObject -Delimiter ';' -Header @(0..($Matches.Count + 1))).PSObject.Properties.Value |
6660
Join-String -Separator "`n" |
6761
ConvertFrom-CsvM -AsHashtable:($PSCmdlet.ParameterSetName -ieq 'Hashtable') |
68-
Write-Output -NoEnumerate:($NoEnumerate.IsPresent)
62+
Write-Output
6963
}
7064
}
7165
<#

hugoalh.GitHubActionsToolkit/module/tool-cache.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Function Find-ToolCache {
111111
}
112112
If ($PSCmdlet.ParameterSetName -ieq 'All') {
113113
Invoke-GitHubActionsNodeJsWrapper -Name 'tool-cache/find-all-versions' -Argument $Argument |
114-
Write-Output -NoEnumerate
114+
Write-Output
115115
}
116116
Else {
117117
$Argument.('version') = $Version.ToString()

0 commit comments

Comments
 (0)