diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,6 +4,7 @@ package main | |||
4 | 4 | ||
5 | import ( | 5 | import ( |
6 | "embed" | 6 | "embed" |
7 | "fmt" | ||
7 | "io/fs" | 8 | "io/fs" |
8 | "log" | 9 | "log" |
9 | 10 | ||
@@ -32,7 +33,7 @@ var appVersion string | |||
32 | func main() { | 33 | func main() { |
33 | rootCmd := &cobra.Command{ | 34 | rootCmd := &cobra.Command{ |
34 | Use: "web-server", | 35 | Use: "web-server", |
35 | Short: "SSH proxy web server", | 36 | Short: fmt.Sprintf("SSH proxy web server (version %s)", appVersion), |
36 | } | 37 | } |
37 | cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "") | 38 | cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "") |
38 | 39 | ||
@@ -42,7 +43,7 @@ func main() { | |||
42 | } | 43 | } |
43 | 44 | ||
44 | web.Register(rootCmd, templates, embeddedClients, appVersion) | 45 | web.Register(rootCmd, templates, embeddedClients, appVersion) |
45 | client.Register(rootCmd) | 46 | client.Register(rootCmd, appVersion) |
46 | register.Register(rootCmd) | 47 | register.Register(rootCmd) |
47 | 48 | ||
48 | if err := rootCmd.Execute(); err != nil { | 49 | if err := rootCmd.Execute(); err != nil { |