-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
31 lines (22 loc) · 882 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
28
29
30
31
package main
import (
"gitlab.wikimedia.org/repos/releng/cli/cmd"
"gitlab.wikimedia.org/repos/releng/cli/internal/cli"
)
// Following variables will be statically linked at the time of compiling
/*GitCommit holds short commit hash of source tree.*/
var GitCommit string
/*GitBranch holds current branch name the code is built off.*/
var GitBranch string
/*GitState shows whether there are uncommitted changes.*/
var GitState string
/*GitSummary holds output of git describe --tags --dirty --always.*/
var GitSummary string
/*BuildDate holds RFC3339 formatted UTC date (build time).*/
var BuildDate string
/*Version holds contents of ./VERSION file, if exists, or the value passed via the -version option.*/
var Version string
func main() {
// Alternatively, execute the command
cmd.Execute(GitCommit, GitBranch, GitState, GitSummary, BuildDate, cli.Version(Version))
}