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.
1 parent a25f9ff commit 4846218Copy full SHA for 4846218
args.go
@@ -30,7 +30,7 @@ func parseArgs() {
30
continue
31
}
32
if arg == "-v" || arg == "--version" {
33
- fmt.Printf("mdns-discovery %s (build timestamp: %s)\n", version.Tag, version.Timestamp)
+ fmt.Printf("mdns-discovery %s (build timestamp: %s)\n", version.Version, version.Timestamp)
34
os.Exit(0)
35
36
fmt.Fprintf(os.Stderr, "invalid argument: %s\n", arg)
version/version.go
@@ -17,8 +17,11 @@
17
18
package version
19
20
-// Tag is the current git tag
21
-var Tag = "snapshot"
+// Version is the current version
+var Version = "unknown"
22
+
23
+// Commit is the current git tag
24
+var Commit = "unknown"
25
26
// Timestamp is the current timestamp
27
var Timestamp = "unknown"
0 commit comments