aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2021-11-17 15:47:51 -0800
committerMike Crute <mike@crute.us>2021-11-17 15:47:51 -0800
commit375654659ce828de4c24035c023c9ab551a37410 (patch)
tree45f4367a4532abb8a883df0842f7cd591e61f795 /main.go
parentbcd64c17f857feda40fa4f1ba4e1aa910bbeb567 (diff)
downloadcloud-identity-broker-375654659ce828de4c24035c023c9ab551a37410.tar.bz2
cloud-identity-broker-375654659ce828de4c24035c023c9ab551a37410.tar.xz
cloud-identity-broker-375654659ce828de4c24035c023c9ab551a37410.zip
Add version to headers
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index f262847..f785d87 100644
--- a/main.go
+++ b/main.go
@@ -17,6 +17,8 @@ import (
17//go:embed templates 17//go:embed templates
18var embeddedTemplates embed.FS 18var embeddedTemplates embed.FS
19 19
20var appVersion string
21
20func main() { 22func 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)