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 <C extends Callable<T>,T> T |
CommandLine.call(Class<C> callableClass,
CommandLine.IFactory factory,
PrintStream out,
PrintStream err,
CommandLine.Help.Ansi ansi,
String... args) |
Convenience method to allow command line application authors to avoid some boilerplate code in their application.
|
static <C extends Callable<T>,T> T |
CommandLine.call(Class<C> callableClass,
CommandLine.IFactory factory,
PrintStream out,
String... args) |
|
static <C extends Callable<T>,T> T |
CommandLine.call(Class<C> callableClass,
CommandLine.IFactory factory,
PrintStream out,
CommandLine.Help.Ansi ansi,
String... args) |
|
static <C extends Callable<T>,T> T |
CommandLine.call(Class<C> callableClass,
CommandLine.IFactory factory,
String... args) |
|
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> void |
CommandLine.run(Class<R> runnableClass,
CommandLine.IFactory factory,
PrintStream out,
PrintStream err,
CommandLine.Help.Ansi ansi,
String... args) |
Convenience method to allow command line application authors to avoid some boilerplate code in their application.
|
static <R extends Runnable> void |
CommandLine.run(Class<R> runnableClass,
CommandLine.IFactory factory,
PrintStream out,
String... args) |
|
static <R extends Runnable> void |
CommandLine.run(Class<R> runnableClass,
CommandLine.IFactory factory,
PrintStream out,
CommandLine.Help.Ansi ansi,
String... args) |
|
static <R extends Runnable> void |
CommandLine.run(Class<R> runnableClass,
CommandLine.IFactory factory,
String... args) |
|