- call(Class<C>, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
-
Instantiates a new ApplicationContext
for the Environment.CLI
environment,
obtains an instance of the specified Callable
command class from the context,
injecting any beans as required,
then parses the specified command line arguments, populating fields and methods annotated
with picocli @Option
and @Parameters
annotations, and finally calls the command and returns the result.
- call(Class<C>, ApplicationContext, String...) - Static method in class io.micronaut.configuration.picocli.PicocliRunner
-
Obtains an instance of the specified Callable
command class from the specified context,
injecting any beans from the specified context as required,
then parses the specified command line arguments, populating fields and methods annotated
with picocli @Option
and @Parameters
annotations, and finally calls the command and returns the result.
- close() - Method in class io.micronaut.configuration.picocli.MicronautFactory
-
Closes the underlying ApplicationContext
.
- create(Class<K>) - Method in class io.micronaut.configuration.picocli.MicronautFactory
-
Delegates to the ApplicationContext
to either find or instantiate a bean of the specified type.