blob: 8eb87b5fca7145c092d5f81bddebbad3f8e2c9cf (
plain)
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
|
package main
import (
"embed"
"log"
"code.crute.us/mcrute/cloud-identity-broker/app"
"code.crute.us/mcrute/cloud-identity-broker/cmd/web"
"code.crute.us/mcrute/golib/cli"
"code.crute.us/mcrute/golib/fs"
"github.com/spf13/cobra"
// Import backup data. By default zoneinfo is installed in the docker image
// if something breaks this will still result in us having correct TZ info.
_ "time/tzdata"
)
//go:embed templates
var templates embed.FS
var version string
func main() {
r := &cobra.Command{
Use: "cloud-identity-broker",
Short: "Identity broker for cloud account access",
}
cli.AddFlags(r, &app.Config{}, app.DefaultConfig, "")
web.Register(r, fs.MustSub(templates, "templates"), version)
if err := r.Execute(); err != nil {
log.Fatalf("Error running root command: %s", err)
}
}
|