need description property

This commit is contained in:
Mavaddat Javid 2023-10-30 11:44:11 -04:00
parent 8b4835d0a9
commit 94243fef09
No known key found for this signature in database
GPG key ID: 966769C31FD637A1

View file

@ -284,7 +284,7 @@ $available%[2]s = Get-Command -Name '%[1]s' -All -ErrorAction SilentlyContinue |
# Enumerate extant aliases for %[1]s (already set by user) # Enumerate extant aliases for %[1]s (already set by user)
${__%[2]sAliases} = @() ${__%[2]sAliases} = @()
foreach($__%[2]sCmd in $available%[2]s){ foreach($__%[2]sCmd in $available%[2]s){
$__%[2]sAliases += Get-Alias | Where-Object { $_ -eq ($__%[2]sCmd | Resolve-Path) -or $_ -eq (Get-Command -Name $__%[2]sCmd -ErrorAction SilentlyContinue).Definition} $__%[2]sAliases += Get-Alias | Where-Object { $_.Definition -eq ($__%[2]sCmd | Resolve-Path) -or $_.Definition -eq (Get-Command -Name $__%[2]sCmd -ErrorAction SilentlyContinue).Definition }
} }
# Register args completer for all cmds and aliases # Register args completer for all cmds and aliases
[string[]]$joint%[2]snames = [array]$available%[2]s.Name + [array]${__%[2]sAliases}.Name + @('%[1]s') [string[]]$joint%[2]snames = [array]$available%[2]s.Name + [array]${__%[2]sAliases}.Name + @('%[1]s')