2020-08-06 20:58:47 +03:00
|
|
|
// Package buildinfo hosts build info variables populated via ldflags.
|
|
|
|
package buildinfo
|
|
|
|
|
2020-11-02 20:40:29 +03:00
|
|
|
// defaultVersion is the default value for Version if not
|
2020-08-09 16:46:46 +03:00
|
|
|
// set via ldflags.
|
2020-11-02 20:40:29 +03:00
|
|
|
const defaultVersion = "v0.0.0-dev"
|
2020-08-09 16:46:46 +03:00
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
var (
|
2020-08-09 16:46:46 +03:00
|
|
|
// Version is the build version. If not set at build time via
|
2020-11-02 20:40:29 +03:00
|
|
|
// ldflags, Version takes the value of defaultVersion.
|
|
|
|
Version = defaultVersion
|
2020-08-06 20:58:47 +03:00
|
|
|
|
|
|
|
// Commit is the commit hash.
|
|
|
|
Commit string
|
|
|
|
|
|
|
|
// Timestamp is the timestamp of when the cli was built.
|
|
|
|
Timestamp string
|
|
|
|
)
|