PowerShell / ConsoleGuiTools

Modules that mix PowerShell and GUIs/CUIs!
https://www.powershellgallery.com/packages/Microsoft.PowerShell.ConsoleGuiTools
MIT License
759 stars 52 forks source link

`Show-ObjectTree` is aliased as `sot`, but the canonical alias for "Show" is "sh" (not "s") #228

Closed RH-TLagrone closed 8 months ago

RH-TLagrone commented 8 months ago

Prerequisites

Steps to reproduce

Show-ObjectTree is aliased as sot, but the canonical alias for the verb "Show" is "sh" (not "s").

Notes

  Run the following in PowerShell...

Get-Verb | Where-Object AliasPrefix -In @('s', 'sh')

...to see the canonical verb aliases:

Verb AliasPrefix Group  Description
---- ----------- -----  -----------
Set  s           Common Replaces data on an existing resource or creates a resource that contains some data
Show sh          Common Makes a resource visible to the user

See Also

Expected behavior

PS> Import-Module Microsoft.PowerShell.ConsoleGuiTools && Get-Alias -Definition Show-ObjectTree

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           shot -> Show-ObjectTree                            0.7.6.0    Microsoft.PowerShell.ConsoleGuiTools

Actual behavior

PS> Import-Module Microsoft.PowerShell.ConsoleGuiTools && Get-Alias -Definition Show-ObjectTree

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           sot -> Show-ObjectTree                             0.7.6.0    Microsoft.PowerShell.ConsoleGuiTools

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.9
PSEdition                      Core
GitCommitId                    7.3.9
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

0.7.6.0

Visuals

No response