-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
35 lines (28 loc) · 855 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
package main
import (
"sync"
"github.com/lorioux/kitabus/commands"
"github.com/lorioux/kitabus/globals"
"github.com/lorioux/kitabus/mappings"
)
func init() {
globals.Control = &sync.Map{}
globals.GetContext = globals.InitContext
globals.CamService, _ = globals.InitService()
globals.MapOfAllTFResourcesWithData = new(sync.Map)
globals.MapOfAllTFResourcesByFilePath = new(sync.Map)
globals.ListOfAllTFResourcesWithData = []*globals.Asset{}
globals.GlossaryOfNamesById = map[string]string{}
globals.Reversor = mappings.ResourceReversorInstance()
globals.GlobalCMDRunner = commands.LocalCmdRunner
globals.TFResourceMapInstancesByType = new(sync.Map)
globals.TFResourceBodyByType = new(sync.Map)
globals.TFModuleBodyByService = new(sync.Map)
}
func Execute() {
// commands.CmdExecute()
commands.Execute()
}
func main() {
Execute()
}