From 1809bb394abe152b30ce95fb114b1a8c9db395cc Mon Sep 17 00:00:00 2001 From: "Tobias Wellnitz, DH1TW" Date: Mon, 2 Apr 2018 17:51:26 +0200 Subject: [PATCH] fixed nats client and server cmd structure --- cmd/client_nats.go | 4 ++-- cmd/server_nats.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/client_nats.go b/cmd/client_nats.go index 5cd8b6e..6dc2f19 100644 --- a/cmd/client_nats.go +++ b/cmd/client_nats.go @@ -36,14 +36,14 @@ import ( // serverMqttCmd represents the mqtt command var natsClientCmd = &cobra.Command{ - Use: "natsclient", + Use: "nats", Short: "nats client", Long: `nats client`, Run: natsAudioClient, } func init() { - serverCmd.AddCommand(natsClientCmd) + clientCmd.AddCommand(natsClientCmd) natsClientCmd.Flags().StringP("broker-url", "u", "localhost", "Broker URL") natsClientCmd.Flags().IntP("broker-port", "p", 4222, "Broker Port") natsClientCmd.Flags().StringP("password", "P", "", "NATS Password") diff --git a/cmd/server_nats.go b/cmd/server_nats.go index 18d3624..25ac4af 100644 --- a/cmd/server_nats.go +++ b/cmd/server_nats.go @@ -32,7 +32,7 @@ import ( // serverMqttCmd represents the mqtt command var natsServerCmd = &cobra.Command{ - Use: "natsserver", + Use: "nats", Short: "nats server", Long: `nats server`, Run: natsAudioServer,