Skip to content

Conversation

@abdalmoniem
Copy link

@abdalmoniem abdalmoniem commented Feb 3, 2026

Extend PowerShell completions to show recipe names, arguments, descriptions, and aliases, bringing them in line with zsh completions.

also moved use [System.Management.Automation] inside the Register-ArgumentCompleter block so users can do:

just --completions powershell >> $PROFILE

without getting errors about use statements not being before any other statements.

image

@abdalmoniem abdalmoniem force-pushed the powershell_completions_improvement branch from 848f98f to ce32a75 Compare February 5, 2026 16:57
Extend PowerShell completions to show recipe names, arguments,
descriptions, and aliases, bringing them in line with zsh completions.

Change-Id: I24a00bca98124754c4857c9b25ebc3cfe260fa31
Signed-off-by: AbdAlMoniem AlHifnawy <hifnawy_moniem@hotmail.com>
Change-Id: I1394fbb9d2178b2436997decef7760fefeac103b
in powershell 5, the Test-Path function crashes if its string
parameter's length is zero (empty string). this commit fixes this crash
by adding a length check for $justFileLocation to short circuit the
condition if $justFileLocation is empty.

Change-Id: Ic5f3e8628c011cb9e5b4d6e9b60c703691e03f80
@abdalmoniem abdalmoniem force-pushed the powershell_completions_improvement branch from ce32a75 to a6c623a Compare February 5, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant