-
Notifications
You must be signed in to change notification settings - Fork 556
/
cli.go
40 lines (33 loc) · 916 Bytes
/
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
package cli
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
)
// GetQueryCmd returns the query commands for the ICA host submodule
func GetQueryCmd() *cobra.Command {
queryCmd := &cobra.Command{
Use: "host",
Short: "IBC interchain accounts host query subcommands",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
}
queryCmd.AddCommand(
GetCmdParams(),
GetCmdPacketEvents(),
)
return queryCmd
}
// NewTxCmd creates and returns the tx command
func NewTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "host",
Short: "IBC interchain accounts host transaction subcommands",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
cmd.AddCommand(
generatePacketDataCmd(),
)
return cmd
}