Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Dec 26, 2023
1 parent e563f6a commit e78d68c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion x/downtime/client/cli/query.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cli

import (
"fmt"
"strconv"

"github.com/cosmos/cosmos-sdk/client"
Expand All @@ -11,7 +12,11 @@ import (

func NewQueryCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName + "query commands",
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}

cmd.AddCommand(CmdQueryDowntime(), CmdQueryParams())
Expand Down
5 changes: 4 additions & 1 deletion x/downtime/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import (

func NewTxCmd() *cobra.Command {
return &cobra.Command{
Use: types.ModuleName + "tx commands",
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: func(_ *cobra.Command, _ []string) error {
return fmt.Errorf("the downtime module does not have any tx commands")
},
Expand Down

0 comments on commit e78d68c

Please sign in to comment.