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

@@ -172,6 +172,7 @@ gsp init
gsp validate
gsp ai-init
gsp version
gsp completion powershell
gsp index
gsp trace <id>
gsp flatten <id>
@@ -192,6 +193,7 @@ go build -o ../bin/gsp ./cmd/gsp
../bin/gsp graph page.lottery.main --root ../examples/lottery --format mermaid --out ../.gsp/graph.mmd
../bin/gsp graph page.lottery.main --root ../examples/lottery --format md --out ../.gsp/graph.md
../bin/gsp graph page.lottery.main --root ../examples/lottery --format canvas --out ../.gsp/graph.canvas
../bin/gsp completion install powershell
```
## 5. 输出