File tree Expand file tree Collapse file tree 3 files changed +50
-30
lines changed
Expand file tree Collapse file tree 3 files changed +50
-30
lines changed Original file line number Diff line number Diff line change 77 hooks :
88 - go mod tidy
99 - sh ./scripts/gen_manpages.sh
10+ - sh ./scripts/gen_completions.sh
1011 - go install github.com/goreleaser/chglog/cmd/chglog@latest
1112 - chglog init
1213
@@ -313,6 +314,18 @@ nfpms:
313314 dst : /usr/share/man/man1/
314315 file_info :
315316 mode : 0644
317+ - src : ./completions/cloudfuse.bash
318+ dst : /usr/share/bash-completion/completions/cloudfuse
319+ file_info :
320+ mode : 0644
321+ - src : ./completions/_cloudfuse
322+ dst : /usr/share/zsh/site-functions/_cloudfuse
323+ file_info :
324+ mode : 0644
325+ - src : ./completions/cloudfuse.fish
326+ dst : /usr/share/fish/vendor_completions.d/cloudfuse.fish
327+ file_info :
328+ mode : 0644
316329
317330 overrides :
318331 deb :
@@ -379,6 +392,18 @@ nfpms:
379392 dst : /usr/share/man/man1/
380393 file_info :
381394 mode : 0644
395+ - src : ./completions/cloudfuse.bash
396+ dst : /usr/share/bash-completion/completions/cloudfuse
397+ file_info :
398+ mode : 0644
399+ - src : ./completions/_cloudfuse
400+ dst : /usr/share/zsh/site-functions/_cloudfuse
401+ file_info :
402+ mode : 0644
403+ - src : ./completions/cloudfuse.fish
404+ dst : /usr/share/fish/vendor_completions.d/cloudfuse.fish
405+ file_info :
406+ mode : 0644
382407
383408 overrides :
384409 deb :
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ # Generate shell completion files for packaging
5+ # These files are created at build time and included in packages
6+
7+ echo " Generating shell completion files..."
8+
9+ # Create completions directory if it doesn't exist
10+ rm -rf completions
11+ mkdir -p completions
12+
13+ # Generate bash completion
14+ echo " - bash completion"
15+ go run . completion bash > completions/cloudfuse.bash
16+
17+ # Generate zsh completion
18+ echo " - zsh completion"
19+ go run . completion zsh > completions/_cloudfuse
20+
21+ # Generate fish completion
22+ echo " - fish completion"
23+ go run . completion fish > completions/cloudfuse.fish
24+
25+ echo " Shell completion files generated in completions/"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments