diff options
author | Mike Crute <mike@crute.us> | 2022-12-21 22:06:29 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2022-12-21 22:06:29 -0800 |
commit | ed1504c2826f6a5d406dd72e51f5a90b77ffea45 (patch) | |
tree | 159733ceaf63026d36c39117fff6159e6247bed7 /main.go | |
parent | e5629fb163c7cf303438afc5be6075299cfc6071 (diff) | |
download | cloud-identity-broker-ed1504c2826f6a5d406dd72e51f5a90b77ffea45.tar.bz2 cloud-identity-broker-ed1504c2826f6a5d406dd72e51f5a90b77ffea45.tar.xz cloud-identity-broker-ed1504c2826f6a5d406dd72e51f5a90b77ffea45.zip |
Upgrade to latest golib
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -5,8 +5,11 @@ import ( | |||
5 | "io/fs" | 5 | "io/fs" |
6 | "log" | 6 | "log" |
7 | 7 | ||
8 | "code.crute.us/mcrute/cloud-identity-broker/app" | ||
8 | "code.crute.us/mcrute/cloud-identity-broker/cmd/web" | 9 | "code.crute.us/mcrute/cloud-identity-broker/cmd/web" |
9 | 10 | ||
11 | "code.crute.us/mcrute/golib/cli" | ||
12 | |||
10 | "github.com/spf13/cobra" | 13 | "github.com/spf13/cobra" |
11 | 14 | ||
12 | // Import backup data. By default zoneinfo is installed in the docker image | 15 | // Import backup data. By default zoneinfo is installed in the docker image |
@@ -24,13 +27,7 @@ func main() { | |||
24 | Use: "cloud-identity-broker", | 27 | Use: "cloud-identity-broker", |
25 | Short: "Identity broker for cloud account access", | 28 | Short: "Identity broker for cloud account access", |
26 | } | 29 | } |
27 | 30 | cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "") | |
28 | rootCmd.PersistentFlags().Bool("debug", false, "Enable debug mode") | ||
29 | rootCmd.PersistentFlags().String("template-glob", "*.tpl", "Glob to match templates") | ||
30 | rootCmd.PersistentFlags().String("template-path", "templates/", "Path where site files are located") | ||
31 | rootCmd.PersistentFlags().String("mongodb-uri", "", "URI for connection to mongodb") | ||
32 | rootCmd.PersistentFlags().String("mongodb-vault-path", "", "Database path for mongodb vault credentials") | ||
33 | rootCmd.PersistentFlags().Bool("disable-bg-jobs", false, "Disable background jobs and only serve web pages") | ||
34 | 31 | ||
35 | // This is here because the trimmed prefix must match the embed prefix | 32 | // This is here because the trimmed prefix must match the embed prefix |
36 | // above and there's no need to bury it and de-couple that relationship. | 33 | // above and there's no need to bury it and de-couple that relationship. |