-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.go
49 lines (36 loc) · 1004 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
40
41
42
43
44
45
46
47
48
49
package main
import (
"embed"
"github.com/mogenius/punq/cmd"
"github.com/mogenius/punq/logger"
"github.com/mogenius/punq/operator"
"github.com/mogenius/punq/utils"
)
// SWAGGER <-- DO NOT REMOVE
// @securityDefinitions.apikey Bearer
// @in header
// @name Authorization
// @description Type "Bearer" followed by a space and JWT token. Use the user/login route to get the token.
// SWAGGER --> DO NOT REMOVE
//go:embed ui/dist/*
var htmlDirFs embed.FS
//go:embed config/local.yaml
var localConfig string
//go:embed config/operator.yaml
var operatorConfig string
//go:embed config/prod.yaml
var prodConfig string
//go:embed CHANGELOG.md
var changelog string
//go:embed welcome.md
var welcomeMessage string
func main() {
utils.DefaultConfigLocalFile = localConfig
utils.DefaultConfigFileOperator = operatorConfig
utils.DefaultConfigFileProd = prodConfig
operator.HtmlDirFs = htmlDirFs
utils.ChangeLog = changelog
utils.WelcomeMessage = welcomeMessage
logger.Init()
cmd.Execute()
}