Skip to content

Commit

Permalink
refact: update goreleaser configuration and improve completion genera…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
richaardev committed Dec 4, 2024
1 parent 1a87243 commit 7fd10d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ before:

builds:
- main: ./cmd/squarecloud
binary: bin/squarecloud
goos: [linux, darwin, windows]
goarch: ["386", amd64, arm, arm64]
goarm: ["7"]
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ build:
.PHONY: completions
completions:
mkdir -p completions
bin/squarecloud completion bash >"completions/completions-bash.bash"
bin/squarecloud completion fish >"completions/completions-fish.fish"
bin/squarecloud completion zsh >"completions/completions-zsh.zsh"
@go run ./cmd/squarecloud completion bash >"completions/completions-bash.bash"
@go run ./cmd/squarecloud completion fish >"completions/completions-fish.fish"
@go run ./cmd/squarecloud completion zsh >"completions/completions-zsh.zsh"

.PHONY: install
install:
Expand All @@ -16,3 +16,7 @@ install:
.PHONY: uninstall
uninstall:
rm /usr/local/bin/squarecloud

.PHONY: clean
clean:
rm -r bin/ completions/ dist/

0 comments on commit 7fd10d8

Please sign in to comment.