Set-GitHubNoCommandGroup¶
SYNOPSIS¶
Disables workflow commands for a block of code.
SYNTAX¶
Set-GitHubNoCommandGroup [-ScriptBlock] <ScriptBlock> [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION¶
DSL approach for GitHub Action commands. Allows for colapsing of code in IDE for code that belong together.
EXAMPLES¶
EXAMPLE 1¶
Set-GitHubNoCommandGroup {
Write-Host 'Hello, World!'
Write-GithubError 'This is an error'
}
Groups commands where no workflow commands are run.
EXAMPLE 2¶
NoLogGroup 'MyGroup' {
Write-Host 'Hello, World!'
Write-GithubError 'This is an error'
}
Groups commands where no workflow commands are run, using an alias and DSL approach.
PARAMETERS¶
-ScriptBlock¶
The script block to execute
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
NOTES¶
Stopping and starting workflow commands