-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
31 lines (22 loc) · 702 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 (
"alexejk.io/portal/cmd"
"alexejk.io/portal/pkg/version"
"github.com/sirupsen/logrus"
)
// appVersion denotes version number of this application
var appVersion = "x.y.z"
// AppName denotes name of this application
var appName = "portal"
// AppCommit denotes git commit that this binary was built from
var appCommit = "~unknown~"
// AppCommitDate denotes the date of the commit
var appCommitDate = "~unknown~"
// AppCommitTime denotes the time of the commit
var appCommitTime = "~unknown~"
func main() {
v := version.NewVersionInfo(appName, appVersion, appCommit, appCommitDate, appCommitTime)
if err := cmd.RootCmd(v).Execute(); err != nil {
logrus.Fatal(err)
}
}