Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Dec 18, 2023

Function to list the actual command list

@rulasg rulasg merged commit 9e9dbe7 into main Dec 18, 2023
@rulasg rulasg deleted the Get-InvokeCommandList branch December 18, 2023 15:20
}
} Export-ModuleMember -Function Set-InvokeCommandAlias

function Get-InvokeCommandAlias{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Get-InvokeCommandAlias' does not have a help comment.

The cmdlet 'Get-InvokeCommandAlias' does not have a help comment.
} Export-ModuleMember -Function Set-InvokeCommandAlias

function Get-InvokeCommandAlias{
[CmdletBinding(SupportsShouldProcess)]

Check warning

Code scanning / PSScriptAnalyzer

'Get-InvokeCommandAlias' has the ShouldProcess attribute but does not call ShouldProcess/ShouldContinue.

'Get-InvokeCommandAlias' has the ShouldProcess attribute but does not call ShouldProcess/ShouldContinue.
if($script:InvokeCommandList -eq $null -or $script:InvokeCommandList.Count -eq 0){
return $null
} else {
return $script:InvokeCommandList

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Get-InvokeCommandAlias' returns an object of type 'System.Collections.Hashtable' but this type is not declared in the OutputType attribute.

The cmdlet 'Get-InvokeCommandAlias' returns an object of type 'System.Collections.Hashtable' but this type is not declared in the OutputType attribute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants