|
1 | 1 | #Requires -PSEdition Core -Version 7.2
|
| 2 | +Import-Module -Name ( |
| 3 | + @( |
| 4 | + 'test-parameter-input-object' |
| 5 | + ) | |
| 6 | + ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath 'internal' -AdditionalChildPath @("$_.psm1") } |
| 7 | +) -Scope 'Local' |
2 | 8 | Import-Module -Name (
|
3 | 9 | @(
|
4 | 10 | 'command-base',
|
5 |
| - 'internal\test-parameter-input-object', |
6 | 11 | 'log'
|
7 | 12 | ) |
|
8 | 13 | ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath "$_.psm1" }
|
@@ -170,7 +175,7 @@ Function Set-Output {
|
170 | 175 | [CmdletBinding(DefaultParameterSetName = 'Single', HelpUri = 'https://github.com/hugoalh-studio/ghactions-toolkit-powershell/wiki/api_function_setgithubactionsoutput')]
|
171 | 176 | [OutputType([Void])]
|
172 | 177 | Param (
|
173 |
| - [Parameter(Mandatory = $True, ParameterSetName = 'Multiple', Position = 0, ValueFromPipeline = $True)][ValidateScript({ Test-GitHubActionsParameterInputObject -InputObject $_ })][Alias('Input', 'Object')]$InputObject, |
| 178 | + [Parameter(Mandatory = $True, ParameterSetName = 'Multiple', Position = 0, ValueFromPipeline = $True)][ValidateScript({ Test-ParameterInputObject -InputObject $_ })][Alias('Input', 'Object')]$InputObject, |
174 | 179 | [Parameter(Mandatory = $True, ParameterSetName = 'Single', Position = 0, ValueFromPipelineByPropertyName = $True)][ValidatePattern('^(?:[\da-z][\da-z_-]*)?[\da-z]$', ErrorMessage = '`{0}` is not a valid GitHub Actions output name!')][Alias('Key')][String]$Name,
|
175 | 180 | [Parameter(Mandatory = $True, ParameterSetName = 'Single', Position = 1, ValueFromPipelineByPropertyName = $True)][AllowEmptyString()][String]$Value
|
176 | 181 | )
|
@@ -209,7 +214,7 @@ Function Set-State {
|
209 | 214 | [CmdletBinding(DefaultParameterSetName = 'Single', HelpUri = 'https://github.com/hugoalh-studio/ghactions-toolkit-powershell/wiki/api_function_setgithubactionsstate')]
|
210 | 215 | [OutputType([Void])]
|
211 | 216 | Param (
|
212 |
| - [Parameter(Mandatory = $True, ParameterSetName = 'Multiple', Position = 0, ValueFromPipeline = $True)][ValidateScript({ Test-GitHubActionsParameterInputObject -InputObject $_ })][Alias('Input', 'Object')]$InputObject, |
| 217 | + [Parameter(Mandatory = $True, ParameterSetName = 'Multiple', Position = 0, ValueFromPipeline = $True)][ValidateScript({ Test-ParameterInputObject -InputObject $_ })][Alias('Input', 'Object')]$InputObject, |
213 | 218 | [Parameter(Mandatory = $True, ParameterSetName = 'Single', Position = 0, ValueFromPipelineByPropertyName = $True)][ValidatePattern('^(?:[\da-z][\da-z_-]*)?[\da-z]$', ErrorMessage = '`{0}` is not a valid GitHub Actions state name!')][Alias('Key')][String]$Name,
|
214 | 219 | [Parameter(Mandatory = $True, ParameterSetName = 'Single', Position = 1, ValueFromPipelineByPropertyName = $True)][AllowEmptyString()][String]$Value
|
215 | 220 | )
|
|
0 commit comments