Skip to content

Commit

Permalink
feat: completions
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jul 14, 2021
1 parent 65b3369 commit 51fbdbf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ org-stats
bin
coverage.out
snap.login
completions/
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ includes:
- from_url:
url: https://raw.githubusercontent.com/caarlos0/goreleaserfiles/main/build.yml
- from_url:
url: https://raw.githubusercontent.com/caarlos0/goreleaserfiles/main/package.yml
url: https://raw.githubusercontent.com/caarlos0/goreleaserfiles/main/package_with_completions.yml
- from_url:
url: https://raw.githubusercontent.com/caarlos0/goreleaserfiles/main/release.yml

Expand Down
7 changes: 7 additions & 0 deletions scripts/completions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -e
rm -rf completions
mkdir completions
for sh in bash zsh fish; do
go run main.go completion "$sh" >"completions/org-stats.$sh"
done

0 comments on commit 51fbdbf

Please sign in to comment.