Modifier and Type | Method | Description |
---|---|---|
static CommandLine.IFactory |
CommandLine.defaultFactory() |
Returns the default
CommandLine.IFactory implementation used if no factory was specified in the CommandLine constructor . |
Modifier and Type | Method | Description |
---|---|---|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addMethodSubcommands(CommandLine.IFactory factory) |
Reflects on the class of the user object and registers any command methods
(class methods annotated with
@Command ) as subcommands. |
static CommandLine.Model.OptionSpec.Builder |
CommandLine.Model.OptionSpec.builder(CommandLine.Model.IAnnotatedElement source,
CommandLine.IFactory factory) |
|
static CommandLine.Model.PositionalParamSpec.Builder |
CommandLine.Model.PositionalParamSpec.builder(CommandLine.Model.IAnnotatedElement source,
CommandLine.IFactory factory) |
|
static <C extends Callable<T>,T> |
CommandLine.call(Class<C> callableClass,
CommandLine.IFactory factory,
PrintStream out,
PrintStream err,
CommandLine.Help.Ansi ansi,
String... args) |
Deprecated.
use
CommandLine.execute(String...) and CommandLine.getExecutionResult() instead |
static <C extends Callable<T>,T> |
CommandLine.call(Class<C> callableClass,
CommandLine.IFactory factory,
PrintStream out,
String... args) |
Deprecated.
use
CommandLine.execute(String...) and CommandLine.getExecutionResult() instead |
static <C extends Callable<T>,T> |
CommandLine.call(Class<C> callableClass,
CommandLine.IFactory factory,
PrintStream out,
CommandLine.Help.Ansi ansi,
String... args) |
Deprecated.
use
CommandLine.execute(String...) and CommandLine.getExecutionResult() instead |
static <C extends Callable<T>,T> |
CommandLine.call(Class<C> callableClass,
CommandLine.IFactory factory,
String... args) |
Deprecated.
use
CommandLine.execute(String...) and CommandLine.getExecutionResult() instead |
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.forAnnotatedObject(Object userObject,
CommandLine.IFactory factory) |
Creates and returns a new
CommandSpec initialized from the specified associated user object. |
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.forAnnotatedObjectLenient(Object userObject,
CommandLine.IFactory factory) |
Creates and returns a new
CommandSpec initialized from the specified associated user object. |
static <R extends Runnable> |
CommandLine.run(Class<R> runnableClass,
CommandLine.IFactory factory,
PrintStream out,
PrintStream err,
CommandLine.Help.Ansi ansi,
String... args) |
Deprecated.
use
CommandLine.execute(String...) instead |
static <R extends Runnable> |
CommandLine.run(Class<R> runnableClass,
CommandLine.IFactory factory,
PrintStream out,
String... args) |
Deprecated.
use
CommandLine.execute(String...) instead |
static <R extends Runnable> |
CommandLine.run(Class<R> runnableClass,
CommandLine.IFactory factory,
PrintStream out,
CommandLine.Help.Ansi ansi,
String... args) |
Deprecated.
use
CommandLine.execute(String...) instead |
static <R extends Runnable> |
CommandLine.run(Class<R> runnableClass,
CommandLine.IFactory factory,
String... args) |
Deprecated.
use
CommandLine.execute(String...) instead |
void |
CommandLine.Model.CommandSpec.updateCommandAttributes(CommandLine.Command cmd,
CommandLine.IFactory factory) |
Updates the following attributes from the specified
@Command annotation:
aliases, parser separator , command name, version, help command,
version provider, default provider and usage message spec . |
Constructor | Description |
---|---|
CommandLine(Object command,
CommandLine.IFactory factory) |
Constructs a new
CommandLine interpreter with the specified object (which may be an annotated user object or a CommandSpec ) and object factory. |
Copyright © 2017–2019. All rights reserved.