-
Notifications
You must be signed in to change notification settings - Fork 17
/
cli.go
42 lines (34 loc) · 1.08 KB
/
cli.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package cli
import (
"fmt"
"github.com/cosmos/cosmos-sdk/client"
"github.com/datachainlab/cross/x/core/auth/types"
"github.com/spf13/cobra"
)
// GetQueryCmd returns the cli query commands for this module
func GetQueryCmd() *cobra.Command {
// Group bridge queries under a subcommand
queryCmd := &cobra.Command{
Use: types.SubModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.SubModuleName),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
// queryCmd.AddCommand()
return queryCmd
}
// NewTxCmd returns the transaction commands for IBC fungible token transfer
func NewTxCmd() *cobra.Command {
txCmd := &cobra.Command{
Use: types.SubModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.SubModuleName),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
txCmd.AddCommand(
NewIBCSignTxCmd(),
)
return txCmd
}