summaryrefslogtreecommitdiff
path: root/cmd/client/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/client/client.go')
-rw-r--r--cmd/client/client.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/client/client.go b/cmd/client/client.go
index da4015e..f25e151 100644
--- a/cmd/client/client.go
+++ b/cmd/client/client.go
@@ -26,10 +26,10 @@ import (
26// This should be compiled into the binary 26// This should be compiled into the binary
27var clientId string 27var clientId string
28 28
29func NewClientCommand() *cobra.Command { 29func NewClientCommand(appVersion string) *cobra.Command {
30 clientCmd := &cobra.Command{ 30 clientCmd := &cobra.Command{
31 Use: "client proxy-host ssh-to-host ssh-port username", 31 Use: "client proxy-host ssh-to-host ssh-port username",
32 Short: "Run websocket client", 32 Short: fmt.Sprintf("Run websocket client (version %s)", appVersion),
33 Args: cobra.ExactArgs(3), 33 Args: cobra.ExactArgs(3),
34 Run: func(c *cobra.Command, args []string) { 34 Run: func(c *cobra.Command, args []string) {
35 cfg := app.Config{} 35 cfg := app.Config{}
@@ -41,8 +41,8 @@ func NewClientCommand() *cobra.Command {
41 return clientCmd 41 return clientCmd
42} 42}
43 43
44func Register(root *cobra.Command) { 44func Register(root *cobra.Command, appVersion string) {
45 root.AddCommand(NewClientCommand()) 45 root.AddCommand(NewClientCommand(appVersion))
46} 46}
47 47
48func generateCertificateRequest(username, host string) (ed25519.PrivateKey, []byte, error) { 48func generateCertificateRequest(username, host string) (ed25519.PrivateKey, []byte, error) {