2019-06-05 16:26:17 -07:00
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
2019-06-15 05:34:11 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
2019-06-05 16:26:17 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/auth/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GetTxCmd returns the transaction commands for this module
|
|
|
|
func GetTxCmd(cdc *codec.Codec) *cobra.Command {
|
|
|
|
txCmd := &cobra.Command{
|
|
|
|
Use: types.ModuleName,
|
|
|
|
Short: "Auth transaction subcommands",
|
|
|
|
DisableFlagParsing: true,
|
|
|
|
SuggestionsMinimumDistance: 2,
|
2019-06-15 05:34:11 -07:00
|
|
|
RunE: client.ValidateCmd,
|
2019-06-05 16:26:17 -07:00
|
|
|
}
|
|
|
|
txCmd.AddCommand(
|
|
|
|
GetMultiSignCommand(cdc),
|
|
|
|
GetSignCommand(cdc),
|
|
|
|
)
|
|
|
|
return txCmd
|
|
|
|
}
|