Skip to content

Commit 4846218

Browse files
committed
Changed version package to conform Arduino tooling scripts
1 parent a25f9ff commit 4846218

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

args.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func parseArgs() {
3030
continue
3131
}
3232
if arg == "-v" || arg == "--version" {
33-
fmt.Printf("mdns-discovery %s (build timestamp: %s)\n", version.Tag, version.Timestamp)
33+
fmt.Printf("mdns-discovery %s (build timestamp: %s)\n", version.Version, version.Timestamp)
3434
os.Exit(0)
3535
}
3636
fmt.Fprintf(os.Stderr, "invalid argument: %s\n", arg)

version/version.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717

1818
package version
1919

20-
// Tag is the current git tag
21-
var Tag = "snapshot"
20+
// Version is the current version
21+
var Version = "unknown"
22+
23+
// Commit is the current git tag
24+
var Commit = "unknown"
2225

2326
// Timestamp is the current timestamp
2427
var Timestamp = "unknown"

0 commit comments

Comments
 (0)