diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -17,6 +17,8 @@ import ( | |||
17 | //go:embed templates | 17 | //go:embed templates |
18 | var embeddedTemplates embed.FS | 18 | var embeddedTemplates embed.FS |
19 | 19 | ||
20 | var appVersion string | ||
21 | |||
20 | func main() { | 22 | func main() { |
21 | rootCmd := &cobra.Command{ | 23 | rootCmd := &cobra.Command{ |
22 | Use: "cloud-identity-broker", | 24 | Use: "cloud-identity-broker", |
@@ -37,7 +39,7 @@ func main() { | |||
37 | log.Fatalf("Error building sub-fs of embeded fs") | 39 | log.Fatalf("Error building sub-fs of embeded fs") |
38 | } | 40 | } |
39 | 41 | ||
40 | web.Register(rootCmd, templates) | 42 | web.Register(rootCmd, templates, appVersion) |
41 | 43 | ||
42 | if err := rootCmd.Execute(); err != nil { | 44 | if err := rootCmd.Execute(); err != nil { |
43 | log.Fatalf("Error running root command: %s", err) | 45 | log.Fatalf("Error running root command: %s", err) |