From 13ddbe304476483b9ef734ada35f00fc0ab159f3 Mon Sep 17 00:00:00 2001 From: Travis LaGrone Date: Mon, 6 Nov 2023 14:26:04 -0600 Subject: [PATCH] Change alias "sot" to "shot" The command "Show-ObjectTree" is aliased as "sot", but the canonical alias for the verb "Show" is "sh" (not "s"). --- docs/Microsoft.PowerShell.ConsoleGuiTools/Show-ObjectTree.md | 2 +- .../Microsoft.PowerShell.ConsoleGuiTools.psd1 | 4 ++-- .../ShowObjectTreeCmdletCommand.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Microsoft.PowerShell.ConsoleGuiTools/Show-ObjectTree.md b/docs/Microsoft.PowerShell.ConsoleGuiTools/Show-ObjectTree.md index d485a63..9c2d296 100644 --- a/docs/Microsoft.PowerShell.ConsoleGuiTools/Show-ObjectTree.md +++ b/docs/Microsoft.PowerShell.ConsoleGuiTools/Show-ObjectTree.md @@ -44,7 +44,7 @@ This command gets the processes running on the local computer and sends them to ### Example 2: Save output to a variable, and then output a tree view ```PowerShell -PS C:\> ($A = Get-ChildItem -Path $pshome -Recurse) | sot +PS C:\> ($A = Get-ChildItem -Path $pshome -Recurse) | shot ``` This command saves its output in a variable and sends it to **Show-ObjectTree**. diff --git a/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1 b/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1 index cf00120..4bcc2cc 100644 --- a/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1 +++ b/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1 @@ -76,7 +76,7 @@ CmdletsToExport = @( 'Out-ConsoleGridView', 'Show-ObjectTree' ) VariablesToExport = '*' # 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. -AliasesToExport = @( 'ocgv', 'sot' ) +AliasesToExport = @( 'ocgv', 'shot' ) # DSC resources to export from this module # DscResourcesToExport = @() @@ -151,7 +151,7 @@ If items are selected, then a filter is applied, items now hidden stay selected * PSAnsiRenderingFileInfo causes display issues with Out-ConsoleGridView #159 * Removes building and distribution of Out-GridView and the other Avalonia-based components * Remove ANSI escape sequences from property values #158 - + ## v0.7.0 Upgraded to PowerShell 7.2 and .NET target framework `net60` diff --git a/src/Microsoft.PowerShell.ConsoleGuiTools/ShowObjectTreeCmdletCommand.cs b/src/Microsoft.PowerShell.ConsoleGuiTools/ShowObjectTreeCmdletCommand.cs index c8165bc..5b2f95d 100644 --- a/src/Microsoft.PowerShell.ConsoleGuiTools/ShowObjectTreeCmdletCommand.cs +++ b/src/Microsoft.PowerShell.ConsoleGuiTools/ShowObjectTreeCmdletCommand.cs @@ -12,7 +12,7 @@ namespace OutGridView.Cmdlet { [Cmdlet("Show", "ObjectTree")] - [Alias("sot")] + [Alias("shot")] public class ShowObjectTreeCmdletCommand : PSCmdlet, IDisposable { #region Properties @@ -51,7 +51,7 @@ public class ShowObjectTreeCmdletCommand : PSCmdlet, IDisposable [Parameter(HelpMessage = "If specified no window frame, filter box, or status bar will be displayed in the GUI.")] public SwitchParameter MinUI { set; get; } /// - /// gets or sets the whether the Terminal.Gui System.Net.Console-based ConsoleDriver will be used instead of the + /// gets or sets the whether the Terminal.Gui System.Net.Console-based ConsoleDriver will be used instead of the /// default platform-specific (Windows or Curses) ConsoleDriver. /// [Parameter(HelpMessage = "If specified the Terminal.Gui System.Net.Console-based ConsoleDriver (NetDriver) will be used.")]