26 lines
582 B
Go
26 lines
582 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/ibc/07-tendermint/types"
|
|
)
|
|
|
|
// NewTxCmd returns a root CLI command handler for all x/ibc/07-tendermint transaction commands.
|
|
func NewTxCmd() *cobra.Command {
|
|
txCmd := &cobra.Command{
|
|
Use: types.SubModuleName,
|
|
Short: "Tendermint client transaction subcommands",
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
}
|
|
|
|
txCmd.AddCommand(
|
|
NewCreateClientCmd(),
|
|
NewUpdateClientCmd(),
|
|
NewSubmitMisbehaviourCmd(),
|
|
)
|
|
|
|
return txCmd
|
|
}
|