Skip to content

Commit b45f20b

Browse files
authored
Change alias "sot" to "shot" (#229)
The command "Show-ObjectTree" is aliased as "sot", but the canonical alias for the verb "Show" is "sh" (not "s").
1 parent ac4e21c commit b45f20b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/Microsoft.PowerShell.ConsoleGuiTools/Show-ObjectTree.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This command gets the processes running on the local computer and sends them to
4444
### Example 2: Save output to a variable, and then output a tree view
4545

4646
```PowerShell
47-
PS C:\> ($A = Get-ChildItem -Path $pshome -Recurse) | sot
47+
PS C:\> ($A = Get-ChildItem -Path $pshome -Recurse) | shot
4848
```
4949

5050
This command saves its output in a variable and sends it to **Show-ObjectTree**.

src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ CmdletsToExport = @( 'Out-ConsoleGridView', 'Show-ObjectTree' )
7676
VariablesToExport = '*'
7777

7878
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
79-
AliasesToExport = @( 'ocgv', 'sot' )
79+
AliasesToExport = @( 'ocgv', 'shot' )
8080

8181
# DSC resources to export from this module
8282
# DscResourcesToExport = @()
@@ -151,7 +151,7 @@ If items are selected, then a filter is applied, items now hidden stay selected
151151
* PSAnsiRenderingFileInfo causes display issues with Out-ConsoleGridView #159
152152
* Removes building and distribution of Out-GridView and the other Avalonia-based components
153153
* Remove ANSI escape sequences from property values #158
154-
154+
155155
## v0.7.0
156156
157157
Upgraded to PowerShell 7.2 and .NET target framework `net60`

src/Microsoft.PowerShell.ConsoleGuiTools/ShowObjectTreeCmdletCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace OutGridView.Cmdlet
1313
{
1414
[Cmdlet("Show", "ObjectTree")]
15-
[Alias("sot")]
15+
[Alias("shot")]
1616
public class ShowObjectTreeCmdletCommand : PSCmdlet, IDisposable
1717
{
1818
#region Properties
@@ -51,7 +51,7 @@ public class ShowObjectTreeCmdletCommand : PSCmdlet, IDisposable
5151
[Parameter(HelpMessage = "If specified no window frame, filter box, or status bar will be displayed in the GUI.")]
5252
public SwitchParameter MinUI { set; get; }
5353
/// <summary>
54-
/// gets or sets the whether the Terminal.Gui System.Net.Console-based ConsoleDriver will be used instead of the
54+
/// gets or sets the whether the Terminal.Gui System.Net.Console-based ConsoleDriver will be used instead of the
5555
/// default platform-specific (Windows or Curses) ConsoleDriver.
5656
/// </summary>
5757
[Parameter(HelpMessage = "If specified the Terminal.Gui System.Net.Console-based ConsoleDriver (NetDriver) will be used.")]

0 commit comments

Comments
 (0)