Uses of Interface
picocli.CommandLine.IFactory
Packages that use CommandLine.IFactory
Package
Description
Provides classes and interfaces for the main picocli command line parsing and
autocompletion
functionality.-
Uses of CommandLine.IFactory in picocli
Methods in picocli that return CommandLine.IFactoryModifier and TypeMethodDescriptionstatic CommandLine.IFactory
CommandLine.defaultFactory()
Returns the defaultCommandLine.IFactory
implementation used if no factory was specified in theCommandLine constructor
.CommandLine.getFactory()
Returns the factory that thisCommandLine
was constructed with.Methods in picocli with parameters of type CommandLine.IFactoryModifier and TypeMethodDescriptionCommandLine.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.CommandLine.Model.OptionSpec.builder
(CommandLine.Model.IAnnotatedElement source, CommandLine.IFactory factory) CommandLine.Model.PositionalParamSpec.builder
(CommandLine.Model.IAnnotatedElement source, CommandLine.IFactory factory) static <C extends Callable<T>,
T>
TCommandLine.call
(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.static <C extends Callable<T>,
T>
TCommandLine.call
(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic <C extends Callable<T>,
T>
TCommandLine.call
(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic <C extends Callable<T>,
T>
TCommandLine.call
(Class<C> callableClass, CommandLine.IFactory factory, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadCommandLine.Model.CommandSpec.forAnnotatedObject
(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpec
initialized from the specified associated user object.CommandLine.Model.CommandSpec.forAnnotatedObjectLenient
(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpec
initialized from the specified associated user object.static <R extends Runnable>
voidCommandLine.run
(Class<R> runnableClass, CommandLine.IFactory factory, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
insteadstatic <R extends Runnable>
voidCommandLine.run
(Class<R> runnableClass, CommandLine.IFactory factory, PrintStream out, String... args) Deprecated.useCommandLine.execute(String...)
insteadstatic <R extends Runnable>
voidCommandLine.run
(Class<R> runnableClass, CommandLine.IFactory factory, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
insteadstatic <R extends Runnable>
voidCommandLine.run
(Class<R> runnableClass, CommandLine.IFactory factory, String... args) Deprecated.useCommandLine.execute(String...)
insteadvoid
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 andusage message spec
.CommandLine.Model.CommandSpec.wrapWithoutInspection
(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpec
with the specified associated user object.Constructors in picocli with parameters of type CommandLine.IFactoryModifierConstructorDescriptionCommandLine
(Object command, CommandLine.IFactory factory) Constructs a newCommandLine
interpreter with the specified object (which may be an annotated user object or aCommandSpec
) and object factory.
CommandLine.execute(String...)
andCommandLine.getExecutionResult()
instead