* x/ibc: refactor CLI * refactor client CLI * rename version ClientName * Update x/ibc/09-localhost/client/cli/cli.go Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com> * address comments from review Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
26 lines
610 B
Go
26 lines
610 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
|
)
|
|
|
|
// NewTxCmd returns the transaction commands for IBC fungible token transfer
|
|
func NewTxCmd() *cobra.Command {
|
|
txCmd := &cobra.Command{
|
|
Use: "ibc-transfer",
|
|
Short: "IBC fungible token transfer transaction subcommands",
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
RunE: client.ValidateCmd,
|
|
}
|
|
|
|
txCmd.AddCommand(flags.PostCommands(
|
|
NewTransferTxCmd(),
|
|
)...)
|
|
|
|
return txCmd
|
|
}
|