forked from camptocamp/bivac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
27 lines (22 loc) · 570 Bytes
/
main.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
package main
import (
"runtime"
"github.com/camptocamp/bivac/cmd"
_ "github.com/camptocamp/bivac/cmd/all"
"github.com/camptocamp/bivac/internal/utils"
)
var (
exitCode int
buildInfo utils.BuildInfo
// Following variables are filled in by the build script
version = "<<< filled in by build >>>"
buildDate = "<<< filled in by build >>>"
commitSha1 = "<<< filled in by build >>>"
)
func main() {
buildInfo.Version = version
buildInfo.Date = buildDate
buildInfo.CommitSha1 = commitSha1
buildInfo.Runtime = runtime.Version()
cmd.Execute(buildInfo)
}