summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index a9c084d..c64f374 100644
--- a/main.go
+++ b/main.go
@@ -4,6 +4,7 @@ package main
4 4
5import ( 5import (
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
32func main() { 33func 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 {