Skip to content

Commit

Permalink
fixed nats client and server cmd structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dh1tw committed Apr 2, 2018
1 parent 716297f commit 1809bb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/client_nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion cmd/server_nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1809bb3

Please sign in to comment.