-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmain.go
38 lines (30 loc) · 877 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
32
33
34
35
36
37
38
package main
import (
"math/rand"
"time"
"github.com/the-anna-project/annad/command"
)
var (
gitCommit string
goArch string
goOS string
goVersion string
projectVersion string
)
func init() {
rand.Seed(time.Now().UTC().UnixNano())
}
func main() {
annadCommand := command.New()
annadCommand.BootCommand().SetGitCommit(gitCommit)
annadCommand.BootCommand().SetGoArch(goArch)
annadCommand.BootCommand().SetGoOS(goOS)
annadCommand.BootCommand().SetGoVersion(goVersion)
annadCommand.BootCommand().SetProjectVersion(projectVersion)
annadCommand.VersionCommand().SetGitCommit(gitCommit)
annadCommand.VersionCommand().SetGoArch(goArch)
annadCommand.VersionCommand().SetGoOS(goOS)
annadCommand.VersionCommand().SetGoVersion(goVersion)
annadCommand.VersionCommand().SetProjectVersion(projectVersion)
annadCommand.New().Execute()
}