RpcCommandOptions specifies options for commands generated from protobuf rpc methods.

from message cosmos.autocli.v1.RpcCommandOptions

Hierarchy

Constructors

Properties

alias: string[] = []

alias is an array of aliases that can be used instead of the first word in Use.

from field: repeated string alias = 6;

deprecated: string = ""

deprecated defines, if this command is deprecated and should print this string when used.

from field: string deprecated = 8;

example: string = ""

example is examples of how to use the command.

from field: string example = 5;

flagOptions: {
    [key: string]: FlagOptions;
} = {}

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.

from field: map<string, cosmos.autocli.v1.FlagOptions> flag_options = 10;

long: string = ""

long is the long message shown in the 'help ' output.

from field: string long = 3;

positionalArgs: PositionalArgDescriptor[] = []

positional_args specifies positional arguments for the command.

from field: repeated cosmos.autocli.v1.PositionalArgDescriptor positional_args = 11;

rpcMethod: string = ""

rpc_method is short name of the protobuf rpc method that this command is generated from.

from field: string rpc_method = 1;

short: string = ""

short is the short description shown in the 'help' output.

from field: string short = 4;

skip: boolean = false

skip specifies whether to skip this rpc method when generating commands.

from field: bool skip = 12;

suggestFor: string[] = []

suggest_for is an array of command names for which this command will be suggested - similar to aliases but only suggests.

from field: repeated string suggest_for = 7;

use: 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.

from field: string use = 2;

version: 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.

from field: string version = 9;

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "cosmos.autocli.v1.RpcCommandOptions" = "cosmos.autocli.v1.RpcCommandOptions"

Methods