diff options
author | Mike Crute <mike@crute.us> | 2023-08-18 13:51:06 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-08-18 13:51:06 -0700 |
commit | aa0254d2eb8cfb89d594861dcb3c9af2b0cf2b89 (patch) | |
tree | d280d83df6a0cbda5eb21de30601d2312f8e8413 /main.go | |
parent | a0328f36938dc2f78e9c1df0735edb8d16528d39 (diff) | |
download | websocket_proxy-aa0254d2eb8cfb89d594861dcb3c9af2b0cf2b89.tar.bz2 websocket_proxy-aa0254d2eb8cfb89d594861dcb3c9af2b0cf2b89.tar.xz websocket_proxy-aa0254d2eb8cfb89d594861dcb3c9af2b0cf2b89.zip |
Simplify main and version
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,6 @@ package main | |||
4 | 4 | ||
5 | import ( | 5 | import ( |
6 | "embed" | 6 | "embed" |
7 | "fmt" | ||
8 | "log" | 7 | "log" |
9 | 8 | ||
10 | "code.crute.us/mcrute/ssh-proxy/app" | 9 | "code.crute.us/mcrute/ssh-proxy/app" |
@@ -32,8 +31,9 @@ var version string | |||
32 | 31 | ||
33 | func main() { | 32 | func main() { |
34 | r := &cobra.Command{ | 33 | r := &cobra.Command{ |
35 | Use: "web-server", | 34 | Use: "web-server", |
36 | Short: fmt.Sprintf("SSH proxy web server (version %s)", version), | 35 | Short: "SSH proxy web server", |
36 | Version: version, | ||
37 | } | 37 | } |
38 | cli.AddFlags(r, &app.Config{}, app.DefaultConfig, "") | 38 | cli.AddFlags(r, &app.Config{}, app.DefaultConfig, "") |
39 | 39 | ||