Skip to content

Commit 7fd10d8

Browse files
committed
refact: update goreleaser configuration and improve completion generation
1 parent 1a87243 commit 7fd10d8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.goreleaser.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ before:
77

88
builds:
99
- main: ./cmd/squarecloud
10-
binary: bin/squarecloud
1110
goos: [linux, darwin, windows]
1211
goarch: ["386", amd64, arm, arm64]
1312
goarm: ["7"]

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ build:
44
.PHONY: completions
55
completions:
66
mkdir -p completions
7-
bin/squarecloud completion bash >"completions/completions-bash.bash"
8-
bin/squarecloud completion fish >"completions/completions-fish.fish"
9-
bin/squarecloud completion zsh >"completions/completions-zsh.zsh"
7+
@go run ./cmd/squarecloud completion bash >"completions/completions-bash.bash"
8+
@go run ./cmd/squarecloud completion fish >"completions/completions-fish.fish"
9+
@go run ./cmd/squarecloud completion zsh >"completions/completions-zsh.zsh"
1010

1111
.PHONY: install
1212
install:
@@ -16,3 +16,7 @@ install:
1616
.PHONY: uninstall
1717
uninstall:
1818
rm /usr/local/bin/squarecloud
19+
20+
.PHONY: clean
21+
clean:
22+
rm -r bin/ completions/ dist/

0 commit comments

Comments
 (0)