Uses of Interface
picocli.CommandLine.IFactory
-
Packages that use CommandLine.IFactory Package Description picocli Provides classes and interfaces for the main picocli command line parsing andautocompletion
functionality.picocli.shell.jline3 Provides classes and interfaces for integrating picocli with JLine 3.picocli.spring Provides classes and interfaces for integrating picocli with Spring Boot.picocli.spring.boot.autoconfigure Provides classes and interfaces for picocli Spring Boot Auto-configuration. -
-
Uses of CommandLine.IFactory in picocli
Methods in picocli that return CommandLine.IFactory Modifier and Type Method Description static CommandLine.IFactory
CommandLine. defaultFactory()
Returns the defaultCommandLine.IFactory
implementation used if no factory was specified in theCommandLine constructor
.CommandLine.IFactory
CommandLine. getFactory()
Returns the factory that thisCommandLine
was constructed with.Methods in picocli with parameters of type CommandLine.IFactory 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>
TCommandLine. call(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, PrintStream err, 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, 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()
insteadstatic CommandLine.Model.CommandSpec
CommandLine.Model.CommandSpec. forAnnotatedObject(Object userObject, CommandLine.IFactory factory)
Creates and returns a newCommandSpec
initialized from the specified associated user object.static CommandLine.Model.CommandSpec
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
.static CommandLine.Model.CommandSpec
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.IFactory Constructor Description CommandLine(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. -
Uses of CommandLine.IFactory in picocli.shell.jline3
Classes in picocli.shell.jline3 that implement CommandLine.IFactory Modifier and Type Class Description static class
PicocliCommands.PicocliCommandsFactory
Command factory that is necessary for applications that want the use theClearScreen
subcommand.Constructors in picocli.shell.jline3 with parameters of type CommandLine.IFactory Constructor Description PicocliCommandsFactory(CommandLine.IFactory nextFactory)
-
Uses of CommandLine.IFactory in picocli.spring
Classes in picocli.spring that implement CommandLine.IFactory Modifier and Type Class Description class
PicocliSpringFactory
PicocliSpringFactory is aCommandLine.IFactory
implementation that looks up classes in a givenorg.springframework.context.ApplicationContext
.Constructors in picocli.spring with parameters of type CommandLine.IFactory Constructor Description PicocliSpringFactory(org.springframework.context.ApplicationContext applicationContext, CommandLine.IFactory fallbackFactory)
Constructs a PicocliSpringFactory with the specified Application context, and the specified fallback factory for classes not found in the application context. -
Uses of CommandLine.IFactory in picocli.spring.boot.autoconfigure
Methods in picocli.spring.boot.autoconfigure that return CommandLine.IFactory Modifier and Type Method Description CommandLine.IFactory
PicocliAutoConfiguration. picocliSpringFactory(org.springframework.context.ApplicationContext applicationContext)
-