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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
// @generated
// This file is @generated by prost-build.
/// ModuleOptions describes the CLI options for a Cosmos SDK module.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleOptions {
/// tx describes the tx commands for the module.
#[prost(message, optional, tag = "1")]
pub tx: ::core::option::Option<ServiceCommandDescriptor>,
/// query describes the queries commands for the module.
#[prost(message, optional, tag = "2")]
pub query: ::core::option::Option<ServiceCommandDescriptor>,
}
/// ServiceCommandDescriptor describes a CLI command based on a protobuf service.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceCommandDescriptor {
/// service is the fully qualified name of the protobuf service to build
/// the command from. It can be left empty if sub_commands are used instead
/// which may be the case if a module provides multiple tx and/or query services.
#[prost(string, tag = "1")]
pub service: ::prost::alloc::string::String,
/// rpc_command_options are options for commands generated from rpc methods.
/// If no options are specified for a given rpc method on the service, a
/// command will be generated for that method with the default options.
#[prost(message, repeated, tag = "2")]
pub rpc_command_options: ::prost::alloc::vec::Vec<RpcCommandOptions>,
/// sub_commands is a map of optional sub-commands for this command based on
/// different protobuf services. The map key is used as the name of the
/// sub-command.
#[prost(map = "string, message", tag = "3")]
pub sub_commands:
::std::collections::HashMap<::prost::alloc::string::String, ServiceCommandDescriptor>,
/// enhance_custom_commands specifies whether to skip the service when generating commands, if a custom command already
/// exists, or enhance the existing command. If set to true, the custom command will be enhanced with the services from
/// gRPC. otherwise when a custom command exists, no commands will be generated for the service.
#[prost(bool, tag = "4")]
pub enhance_custom_command: bool,
/// short is an optional parameter used to override the short description of the auto generated command.
#[prost(string, tag = "5")]
pub short: ::prost::alloc::string::String,
}
/// RpcCommandOptions specifies options for commands generated from protobuf
/// rpc methods.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RpcCommandOptions {
/// rpc_method is short name of the protobuf rpc method that this command is
/// generated from.
#[prost(string, tag = "1")]
pub rpc_method: ::prost::alloc::string::String,
/// use is the one-line usage method. It also allows specifying an alternate
/// name for the command as the first word of the usage text.
///
/// By default the name of an rpc command is the kebab-case short name of the
/// rpc method.
#[prost(string, tag = "2")]
pub r#use: ::prost::alloc::string::String,
/// long is the long message shown in the 'help <this-command>' output.
#[prost(string, tag = "3")]
pub long: ::prost::alloc::string::String,
/// short is the short description shown in the 'help' output.
#[prost(string, tag = "4")]
pub short: ::prost::alloc::string::String,
/// example is examples of how to use the command.
#[prost(string, tag = "5")]
pub example: ::prost::alloc::string::String,
/// alias is an array of aliases that can be used instead of the first word in Use.
#[prost(string, repeated, tag = "6")]
pub alias: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// suggest_for is an array of command names for which this command will be suggested -
/// similar to aliases but only suggests.
#[prost(string, repeated, tag = "7")]
pub suggest_for: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// deprecated defines, if this command is deprecated and should print this string when used.
#[prost(string, tag = "8")]
pub deprecated: ::prost::alloc::string::String,
/// version defines the version for this command. If this value is non-empty and the command does not
/// define a "version" flag, a "version" boolean flag will be added to the command and, if specified,
/// will print content of the "Version" variable. A shorthand "v" flag will also be added if the
/// command does not define one.
#[prost(string, tag = "9")]
pub version: ::prost::alloc::string::String,
/// flag_options are options for flags generated from rpc request fields.
/// By default all request fields are configured as flags. They can
/// also be configured as positional args instead using positional_args.
#[prost(map = "string, message", tag = "10")]
pub flag_options: ::std::collections::HashMap<::prost::alloc::string::String, FlagOptions>,
/// positional_args specifies positional arguments for the command.
#[prost(message, repeated, tag = "11")]
pub positional_args: ::prost::alloc::vec::Vec<PositionalArgDescriptor>,
/// skip specifies whether to skip this rpc method when generating commands.
#[prost(bool, tag = "12")]
pub skip: bool,
/// gov_proposal specifies whether autocli should generate a gov proposal transaction for this rpc method.
/// Normally autocli generates a transaction containing the message and broadcast it.
/// However, when true, autocli generates a proposal transaction containing the message and broadcast it.
/// This option is ineffective for query commands.
#[prost(bool, tag = "13")]
pub gov_proposal: bool,
}
/// FlagOptions are options for flags generated from rpc request fields.
/// By default, all request fields are configured as flags based on the
/// kebab-case name of the field. Fields can be turned into positional arguments
/// instead by using RpcCommandOptions.positional_args.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FlagOptions {
/// name is an alternate name to use for the field flag.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// shorthand is a one-letter abbreviated flag.
#[prost(string, tag = "2")]
pub shorthand: ::prost::alloc::string::String,
/// usage is the help message.
#[prost(string, tag = "3")]
pub usage: ::prost::alloc::string::String,
/// default_value is the default value as text.
#[prost(string, tag = "4")]
pub default_value: ::prost::alloc::string::String,
/// deprecated is the usage text to show if this flag is deprecated.
#[prost(string, tag = "6")]
pub deprecated: ::prost::alloc::string::String,
/// shorthand_deprecated is the usage text to show if the shorthand of this flag is deprecated.
#[prost(string, tag = "7")]
pub shorthand_deprecated: ::prost::alloc::string::String,
/// hidden hides the flag from help/usage text
#[prost(bool, tag = "8")]
pub hidden: bool,
}
/// PositionalArgDescriptor describes a positional argument.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PositionalArgDescriptor {
/// proto_field specifies the proto field to use as the positional arg. Any
/// fields used as positional args will not have a flag generated.
#[prost(string, tag = "1")]
pub proto_field: ::prost::alloc::string::String,
/// varargs makes a positional parameter a varargs parameter. This can only be
/// applied to last positional parameter and the proto_field must a repeated
/// field. Note: It is mutually exclusive with optional.
#[prost(bool, tag = "2")]
pub varargs: bool,
/// optional makes the last positional parameter optional.
/// Note: It is mutually exclusive with varargs.
#[prost(bool, tag = "3")]
pub optional: bool,
}
/// AppOptionsRequest is the RemoteInfoService/AppOptions request type.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AppOptionsRequest {}
/// AppOptionsResponse is the RemoteInfoService/AppOptions response type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppOptionsResponse {
/// module_options is a map of module name to autocli module options.
#[prost(map = "string, message", tag = "1")]
pub module_options: ::std::collections::HashMap<::prost::alloc::string::String, ModuleOptions>,
}
include!("cosmos.autocli.v1.tonic.rs");
// @@protoc_insertion_point(module)