Skip to content

Commit ad7900d

Browse files
committed
Fix use of wrong function
1 parent 2b3ac70 commit ad7900d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hugoalh.GitHubActionsToolkit/lib/command-stdout.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Function Disable-StdOutCommandEcho {
2828
[CmdletBinding(HelpUri = 'https://github.com/hugoalh-studio/ghactions-toolkit-powershell/wiki/api_function_disablegithubactionsstdoutcommandecho')]
2929
[OutputType([Void])]
3030
Param ()
31-
Write-GitHubActionsStdOutCommand -StdOutCommand 'echo' -Value 'off'
31+
Write-StdOutCommand -StdOutCommand 'echo' -Value 'off'
3232
}
3333
Set-Alias -Name 'Disable-CommandEcho' -Value 'Disable-StdOutCommandEcho' -Option 'ReadOnly' -Scope 'Local'
3434
Set-Alias -Name 'Stop-CommandEcho' -Value 'Disable-StdOutCommandEcho' -Option 'ReadOnly' -Scope 'Local'
@@ -52,7 +52,7 @@ Function Disable-StdOutCommandProcess {
5252
If ($EndToken.Length -eq 0) {
5353
$EndToken = (New-Guid).Guid.ToLower() -ireplace '-', ''
5454
}
55-
Write-GitHubActionsStdOutCommand -StdOutCommand 'stop-commands' -Value $EndToken
55+
Write-StdOutCommand -StdOutCommand 'stop-commands' -Value $EndToken
5656
Write-Output -InputObject $EndToken
5757
}
5858
Set-Alias -Name 'Disable-CommandProcess' -Value 'Disable-StdOutCommandProcess' -Option 'ReadOnly' -Scope 'Local'
@@ -72,7 +72,7 @@ Function Enable-StdOutCommandEcho {
7272
[CmdletBinding(HelpUri = 'https://github.com/hugoalh-studio/ghactions-toolkit-powershell/wiki/api_function_enablegithubactionsstdoutcommandecho')]
7373
[OutputType([Void])]
7474
Param ()
75-
Write-GitHubActionsStdOutCommand -StdOutCommand 'echo' -Value 'on'
75+
Write-StdOutCommand -StdOutCommand 'echo' -Value 'on'
7676
}
7777
Set-Alias -Name 'Enable-CommandEcho' -Value 'Enable-StdOutCommandEcho' -Option 'ReadOnly' -Scope 'Local'
7878
Set-Alias -Name 'Start-CommandEcho' -Value 'Enable-StdOutCommandEcho' -Option 'ReadOnly' -Scope 'Local'
@@ -93,7 +93,7 @@ Function Enable-StdOutCommandProcess {
9393
Param (
9494
[Parameter(Mandatory = $True, Position = 0)][ValidateScript({ Test-StdOutCommandEndToken -InputObject $_ }, ErrorMessage = 'Value is not a single line string, more than or equal to 4 characters, and not match any GitHub Actions commands!')][Alias('EndKey', 'EndValue', 'Key', 'Token', 'Value')][String]$EndToken
9595
)
96-
Write-GitHubActionsStdOutCommand -StdOutCommand $EndToken
96+
Write-StdOutCommand -StdOutCommand $EndToken
9797
}
9898
Set-Alias -Name 'Enable-CommandProcess' -Value 'Enable-StdOutCommandProcess' -Option 'ReadOnly' -Scope 'Local'
9999
Set-Alias -Name 'Resume-CommandProcess' -Value 'Enable-StdOutCommandProcess' -Option 'ReadOnly' -Scope 'Local'

0 commit comments

Comments
 (0)