github.com/cosmos/cosmos-sdk@v0.50.10/runtime/autocli.go (about) 1 package runtime 2 3 import ( 4 appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1" 5 autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" 6 reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1" 7 ) 8 9 func (m appModule) AutoCLIOptions() *autocliv1.ModuleOptions { 10 return &autocliv1.ModuleOptions{ 11 Query: &autocliv1.ServiceCommandDescriptor{ 12 Service: appv1alpha1.Query_ServiceDesc.ServiceName, 13 RpcCommandOptions: []*autocliv1.RpcCommandOptions{ 14 { 15 RpcMethod: "Config", 16 Short: "Query the current app config", 17 }, 18 }, 19 SubCommands: map[string]*autocliv1.ServiceCommandDescriptor{ 20 "autocli": { 21 Service: autocliv1.Query_ServiceDesc.ServiceName, 22 RpcCommandOptions: []*autocliv1.RpcCommandOptions{ 23 { 24 RpcMethod: "AppOptions", 25 Short: "Query the custom autocli options", 26 }, 27 }, 28 }, 29 "reflection": { 30 Service: reflectionv1.ReflectionService_ServiceDesc.ServiceName, 31 RpcCommandOptions: []*autocliv1.RpcCommandOptions{ 32 { 33 RpcMethod: "FileDescriptors", 34 Short: "Query the app's protobuf file descriptors", 35 }, 36 }, 37 }, 38 }, 39 }, 40 } 41 }