We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d9e967 + 9ab8c31 commit bec4960Copy full SHA for bec4960
.goreleaser.yaml
@@ -1,5 +1,7 @@
1
builds:
2
- - env:
+ - ldflags:
3
+ - -s -w -X github.com/koki-develop/clive/cmd.version={{.Version}}
4
+ env:
5
- CGO_ENABLED=0
6
goos:
7
- linux
cmd/root.go
@@ -6,9 +6,11 @@ import (
"github.com/spf13/cobra"
)
8
9
+var version string
10
+
11
var rootCmd = &cobra.Command{
12
Use: "clive",
- Version: "v0.3.0",
13
+ Version: version,
14
Short: "Automates terminal operations and lets you view them live via a browser",
15
Long: "Automates terminal operations and lets you view them live via a browser.",
16
}
0 commit comments