CommandDescription.Builder |
CommandDescription.Builder.argument(ArgumentDescription argument) |
Adds an argument description.
|
CommandDescription.Builder |
CommandDescription.Builder.arguments(java.util.List<ArgumentDescription> arguments) |
Sets all argument descriptions.
|
static CommandDescription.Builder |
CommandDescription.builder() |
Creates a new builder.
|
CommandDescription.Builder |
CommandDescription.Builder.command(boolean command) |
Sets whether this description represents a command.
|
CommandDescription.Builder |
CommandDescription.Builder.errorIndex(int errorIndex) |
Sets the error index.
|
CommandDescription.Builder |
CommandDescription.Builder.errorPattern(java.util.regex.Pattern errorPattern) |
Sets the error pattern.
|
CommandDescription.Builder |
CommandDescription.Builder.highlighted(boolean highlighted) |
Sets whether the command should be highlighted.
|
CommandDescription.Builder |
CommandDescription.Builder.mainDescription(java.util.List<org.jline.utils.AttributedString> mainDescription) |
Sets the main description.
|
CommandDescription.Builder |
CommandDescription.Builder.option(java.lang.String key,
java.util.List<org.jline.utils.AttributedString> description) |
Adds an option with its description.
|
CommandDescription.Builder |
CommandDescription.Builder.options(java.util.Map<java.lang.String,java.util.List<org.jline.utils.AttributedString>> options) |
Sets all options.
|
CommandDescription.Builder |
CommandDescription.Builder.subcommand(boolean subcommand) |
Sets whether this description represents a subcommand.
|
CommandDescription.Builder |
CommandDescription.Builder.valid(boolean valid) |
Sets whether this description is valid.
|