cosmossdk.io/client/v2@v2.0.0-beta.1/autocli/interface.go (about) 1 package autocli 2 3 import ( 4 "github.com/spf13/cobra" 5 6 autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" 7 "cosmossdk.io/core/appmodule" 8 ) 9 10 // HasAutoCLIConfig is an AppModule extension interface for declaring autocli module options. 11 type HasAutoCLIConfig interface { 12 appmodule.AppModule 13 14 // AutoCLIOptions are the autocli module options for this module. 15 AutoCLIOptions() *autocliv1.ModuleOptions 16 } 17 18 // HasCustomQueryCommand is an AppModule extension interface for declaring a custom query command. 19 type HasCustomQueryCommand interface { 20 appmodule.AppModule 21 22 // GetQueryCmd returns a custom cobra query command for this module. 23 GetQueryCmd() *cobra.Command 24 } 25 26 // HasCustomTxCommand is an AppModule extension interface for declaring a custom tx command. 27 type HasCustomTxCommand interface { 28 appmodule.AppModule 29 30 // GetTxCmd returns a custom cobra tx command for this module. 31 GetTxCmd() *cobra.Command 32 }