| Modifier and Type | Method and Description |
|---|---|
CLI |
CLI.addArgument(Argument arg)
Adds an argument.
|
CLI |
CLI.addArguments(List<Argument> args)
Adds a set of arguments.
|
CLI |
CLI.addOption(Option option)
Adds an option.
|
CLI |
CLI.addOptions(List<Option> options)
Adds a set of options.
|
CLI |
CommandLine.cli() |
static CLI |
CLI.create(Class<?> clazz)
Creates an instance of
CLI from the given Java class. |
static CLI |
CLI.create(String name)
Creates an instance of
CLI using the default implementation. |
CLI |
CLI.removeArgument(int index)
Removes an argument identified by its index.
|
CLI |
CLI.removeOption(String name)
Removes an option identified by its name.
|
CLI |
CLI.setArguments(List<Argument> args)
Sets the list of arguments.
|
CLI |
CLI.setDescription(String desc) |
CLI |
CLI.setHidden(boolean hidden)
Sets whether or not the current instance of
CLI must be hidden. |
CLI |
CLI.setName(String name)
Sets the name of the CLI.
|
CLI |
CLI.setOptions(List<Option> options)
Sets the list of arguments.
|
CLI |
CLI.setPriority(int priority)
Sets the priority of the CLI.
|
CLI |
CLI.setSummary(String summary)
Sets the summary of the CLI.
|
CLI |
CLI.usage(StringBuilder builder)
Generates the usage / help of the current
CLI. |
CLI |
CLI.usage(StringBuilder builder,
String prefix)
Generates the usage / help of the current
CLI. |
| Modifier and Type | Method and Description |
|---|---|
void |
UsageMessageFormatter.computeUsageLine(StringBuilder buffer,
String prefix,
CLI cli) |
static CommandLine |
CommandLine.create(CLI cli)
Creates a command line object from the
CLI. |
void |
UsageMessageFormatter.usage(StringBuilder builder,
CLI cli)
Computes the usage of the given
CLI. |
void |
UsageMessageFormatter.usage(StringBuilder builder,
String prefix,
CLI cli)
Computes the usage of the given
CLI. |
| Modifier and Type | Method and Description |
|---|---|
protected StringBuilder |
UsageMessageFormatter.renderCommands(StringBuilder sb,
Collection<CLI> commands) |
| Modifier and Type | Method and Description |
|---|---|
static CLI |
CLIConfigurator.define(Class<?> clazz)
Creates an instance of the given class, and extracts the metadata from the given class.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultCLI
Default implementation of
CLI. |
| Modifier and Type | Field and Description |
|---|---|
protected CLI |
DefaultCommandLine.cli |
| Modifier and Type | Method and Description |
|---|---|
CLI |
DefaultCLI.addArgument(Argument arg) |
CLI |
DefaultCLI.addArguments(List<Argument> args) |
CLI |
DefaultCLI.addOption(Option option) |
CLI |
DefaultCLI.addOptions(List<Option> options) |
CLI |
DefaultCommandLine.cli() |
CLI |
DefaultCLI.removeArgument(int index) |
CLI |
DefaultCLI.removeOption(String name) |
CLI |
DefaultCLI.setArguments(List<Argument> args) |
CLI |
DefaultCLI.setDescription(String desc) |
CLI |
DefaultCLI.setHidden(boolean hidden) |
CLI |
DefaultCLI.setName(String name) |
CLI |
DefaultCLI.setOptions(List<Option> options) |
CLI |
DefaultCLI.setPriority(int priority) |
CLI |
DefaultCLI.setSummary(String summary) |
CLI |
DefaultCLI.usage(StringBuilder builder) |
CLI |
DefaultCLI.usage(StringBuilder builder,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
DefaultParser.parse(CLI cli,
List<String> cla) |
CommandLine |
DefaultParser.parse(CLI cli,
List<String> cla,
boolean validate) |
| Constructor and Description |
|---|
DefaultCommandLine(CLI cli) |
| Modifier and Type | Field and Description |
|---|---|
CLI |
VertxCommandLauncher.CommandRegistration.cli |
| Modifier and Type | Method and Description |
|---|---|
protected void |
VertxCommandLauncher.printCommandUsage(CLI cli) |
protected void |
VertxCommandLauncher.printGenericExecutionError(CLI cli,
CLIException e) |
protected void |
VertxCommandLauncher.printSpecificException(CLI cli,
Exception e) |
| Constructor and Description |
|---|
CommandRegistration(CommandFactory factory,
CLI cli) |
| Modifier and Type | Method and Description |
|---|---|
CLI |
ExecutionContext.cli() |
CLI |
CommandFactory.define()
Creates a new
CLI instance. |
CLI |
DefaultCommandFactory.define() |
| Modifier and Type | Method and Description |
|---|---|
CLI |
TestCommandFactory.define() |
| Modifier and Type | Method and Description |
|---|---|
CLI |
CLI.getDelegate() |
| Modifier and Type | Method and Description |
|---|---|
static CLI |
CLI.newInstance(CLI arg) |
| Constructor and Description |
|---|
CLI(CLI delegate) |
| Modifier and Type | Method and Description |
|---|---|
CLI |
CLI.getDelegate() |
| Modifier and Type | Method and Description |
|---|---|
static CLI |
CLI.newInstance(CLI arg) |
| Constructor and Description |
|---|
CLI(CLI delegate) |
Copyright © 2021. All rights reserved.