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

@@ -49,6 +49,20 @@ gsp version
gsp version --json
```
## completion
Print or install shell completion scripts.
```bash
gsp completion powershell
gsp completion bash
gsp completion zsh
gsp completion fish
gsp completion install powershell
```
Completion covers subcommands, common flags, enum values, and GSP ids from `gsp index --root .`.
## validate
Validate GSP files and references.