-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathmain.go
39 lines (30 loc) · 864 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
39
// Copyright The Linux Foundation and each contributor to CommunityBridge.
// SPDX-License-Identifier: MIT
package main
import (
"github.com/communitybridge/easycla/cla-backend-go/cmd"
ini "github.com/communitybridge/easycla/cla-backend-go/init"
token "github.com/communitybridge/easycla/cla-backend-go/token"
)
var (
// version the application version
version string
// build/Commit the application build number
commit string
// branch the build branch
branch string
// build date
buildDate string
)
func init() {
ini.ConfigVariable()
configFile := ini.GetConfig()
token.Init(configFile.Auth0Platform.ClientID, configFile.Auth0Platform.ClientSecret, configFile.Auth0Platform.URL, configFile.Auth0Platform.Audience)
}
func main() {
cmd.Version = version
cmd.Commit = commit
cmd.Branch = branch
cmd.BuildDate = buildDate
cmd.Execute()
}