github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/ibc-go/modules/core/03-connection/client/cli/cli.go (about) 1 package cli 2 3 import ( 4 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec" 5 interfacetypes "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec/types" 6 "github.com/fibonacci-chain/fbc/libs/ibc-go/modules/core/03-connection/types" 7 "github.com/spf13/cobra" 8 ) 9 10 // GetQueryCmd returns the query commands for IBC connections 11 func GetQueryCmd(cdc *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command { 12 queryCmd := &cobra.Command{ 13 Use: types.SubModuleName, 14 Short: "IBC connection query subcommands", 15 DisableFlagParsing: true, 16 SuggestionsMinimumDistance: 2, 17 } 18 19 queryCmd.AddCommand( 20 GetCmdQueryConnections(cdc, reg), 21 GetCmdQueryConnection(cdc, reg), 22 GetCmdQueryClientConnections(cdc, reg), 23 ) 24 25 return queryCmd 26 }