forked from keel-hq/keel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
keel.go
42 lines (33 loc) · 890 Bytes
/
keel.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package version
import (
"runtime"
"github.com/alwinius/bow/types"
)
// Generic tool info
const (
ProductName string = "bow"
APIVersion = "1"
)
// Revision that was compiled. This will be filled in by the compiler.
var Revision string
// BuildDate is when the binary was compiled. This will be filled in by the
// compiler.
var BuildDate string
// Version number that is being run at the moment. Version should use semver.
var Version string
// Experimental is intended to be used to enable alpha features.
var Experimental string
// GetbowVersion returns version info.
func GetbowVersion() types.VersionInfo {
v := types.VersionInfo{
Name: ProductName,
Revision: Revision,
BuildDate: BuildDate,
Version: Version,
APIVersion: APIVersion,
GoVersion: runtime.Version(),
OS: runtime.GOOS,
Arch: runtime.GOARCH,
}
return v
}