Skip to content

Commit faf7add

Browse files
committed
ci: generate shell completions in goreleaser before hook
1 parent 1ec52f9 commit faf7add

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ coverage.html
3030
.DS_Store
3131
Thumbs.db
3232

33+
# Shell completions (generated by goreleaser)
34+
completions/
35+
3336
# Environment files
3437
.env
3538
.env.*

.goreleaser.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ project_name: gitscrum
88
before:
99
hooks:
1010
- go mod tidy
11+
- mkdir -p completions
12+
- sh -c "go run ./cmd/gitscrum completion bash > completions/gitscrum.bash"
13+
- sh -c "go run ./cmd/gitscrum completion zsh > completions/_gitscrum"
14+
- sh -c "go run ./cmd/gitscrum completion fish > completions/gitscrum.fish"
1115

1216
builds:
1317
- id: gitscrum

0 commit comments

Comments
 (0)