diff options
author | Mike Crute <mike@crute.us> | 2021-11-17 15:47:51 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2021-11-17 15:47:51 -0800 |
commit | 375654659ce828de4c24035c023c9ab551a37410 (patch) | |
tree | 45f4367a4532abb8a883df0842f7cd591e61f795 /main.go | |
parent | bcd64c17f857feda40fa4f1ba4e1aa910bbeb567 (diff) | |
download | cloud-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.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) |