Add shell completion support

This commit is contained in:
2026-05-06 20:34:43 +08:00
parent f7f5e2c67c
commit f2d0a83705
7 changed files with 319 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
param(
[string]$InstallDir = "$HOME\.gsp\bin"
[string]$InstallDir = "$HOME\.gsp\bin",
[switch]$NoCompletion
)
$ErrorActionPreference = "Stop"
@@ -36,3 +37,7 @@ else {
}
& $TargetExe version
if (-not $NoCompletion) {
& $TargetExe completion install powershell
}