We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02c53be + 95aef47 commit 5c27dd6Copy full SHA for 5c27dd6
cmd/go-cli-github/main.go
@@ -4,14 +4,6 @@ import (
4
"github.com/alecthomas/kong"
5
)
6
7
-var (
8
- commit string
9
- date string
10
- goVersion string
11
- projectName string
12
- version string
13
-)
14
-
15
// CLI represents the command-line interface.
16
type CLI struct {
17
Version VersionCmd `kong:"cmd,help='Print version information'"`
cmd/go-cli-github/version.go
@@ -5,6 +5,15 @@ import (
"fmt"
+// These variables are set by GoReleaser during the build.
+var (
+ commit string
+ date string
+ goVersion string
+ projectName string
+ version string
+)
+
// VersionCmd represents the `version` command.
18
type VersionCmd struct{}
19
0 commit comments