We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6544a32 commit d1b2a13Copy full SHA for d1b2a13
.goreleaser.yaml
@@ -20,6 +20,8 @@ builds:
20
- linux
21
- windows
22
- darwin
23
+ ldflags:
24
+ - -s -w -X github.com/Pairadux/muxly/cmd.Version={{.Version}}
25
26
archives:
27
- formats: [tar.gz]
cmd/root.go
@@ -28,9 +28,13 @@ var (
28
verbose bool
29
)
30
31
+// Version is set at build time via ldflags
32
+var Version = "dev"
33
+
34
// rootCmd represents the base command when called without any subcommands
35
var rootCmd = &cobra.Command{
36
Use: "muxly [SESSION]",
37
+ Version: Version,
38
Example: "",
39
Short: "A tool for quickly opening tmux sessions",
40
Long: "A tool for quickly opening tmux sessions\n\nBased on ThePrimeagen's tmux-sessionizer script.",
0 commit comments