From bb39e5017715f687dae64b6a1fca88e9345f59db Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Fri, 28 Jun 2024 21:40:56 -0700 Subject: [PATCH] feat: Namespace.get_Command ( Fixes #1146 ) --- Types/Namespace/get_Command.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Types/Namespace/get_Command.ps1 diff --git a/Types/Namespace/get_Command.ps1 b/Types/Namespace/get_Command.ps1 new file mode 100644 index 000000000..6bd79edd8 --- /dev/null +++ b/Types/Namespace/get_Command.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Gets the commands in the namespace. +.DESCRIPTION + Gets all the commands in the namespace. + + That is, all aliases, cmdlets, and functions. +#> +if (-not $this.Pattern) { return } + +@( + $this.Alias + $this.Cmdlet + $this.Function +) -ne $null \ No newline at end of file