diff options
author | Mike Crute <mike@crute.us> | 2019-12-07 13:36:14 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-12-07 13:36:14 -0800 |
commit | 219288c98477e392242e5dcca300d20062b3c670 (patch) | |
tree | af5e074287a8544d2180d151c962c41207a86d75 /main.go | |
parent | 0f4f1cb33dac5637b4054801af413d1b9e9aab1e (diff) | |
download | websocket_proxy-219288c98477e392242e5dcca300d20062b3c670.tar.bz2 websocket_proxy-219288c98477e392242e5dcca300d20062b3c670.tar.xz websocket_proxy-219288c98477e392242e5dcca300d20062b3c670.zip |
Set version at build time
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,9 +11,11 @@ import ( | |||
11 | "github.com/spf13/cobra" | 11 | "github.com/spf13/cobra" |
12 | ) | 12 | ) |
13 | 13 | ||
14 | var version string | ||
15 | |||
14 | var rootCmd = &cobra.Command{ | 16 | var rootCmd = &cobra.Command{ |
15 | Use: "websocket-proxy", | 17 | Use: "websocket-proxy", |
16 | Version: "0.1.0", | 18 | Version: version, |
17 | Short: "Proxy TCP connections over a websocket", | 19 | Short: "Proxy TCP connections over a websocket", |
18 | } | 20 | } |
19 | 21 | ||