Package io.quarkus.cli
Class QuarkusCli
java.lang.Object
io.quarkus.cli.QuarkusCli
- All Implemented Interfaces:
io.quarkus.cli.common.OutputProvider,io.quarkus.runtime.QuarkusApplication,Callable<Integer>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) picocli.CommandLine.IFactoryprotected io.quarkus.cli.common.HelpOption(package private) io.quarkus.cli.common.OutputOptionMixinprotected io.quarkus.cli.common.PropertiesOptionsprotected io.quarkus.cli.common.registry.RegistryClientMixinbooleanprotected picocli.CommandLine.Model.CommandSpec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()checkMissingCommand(picocli.CommandLine root, String[] args) Process the arguments passed and return an identifier of the potentially missing subcommand if any.io.quarkus.cli.common.OutputOptionMixinint
-
Field Details
-
factory
@Inject picocli.CommandLine.IFactory factory -
registryClient
protected io.quarkus.cli.common.registry.RegistryClientMixin registryClient -
helpOption
protected io.quarkus.cli.common.HelpOption helpOption -
showVersion
public boolean showVersion -
output
io.quarkus.cli.common.OutputOptionMixin output -
spec
protected picocli.CommandLine.Model.CommandSpec spec -
propertiesOptions
protected io.quarkus.cli.common.PropertiesOptions propertiesOptions
-
-
Constructor Details
-
QuarkusCli
public QuarkusCli()
-
-
Method Details
-
getOutput
public io.quarkus.cli.common.OutputOptionMixin getOutput()- Specified by:
getOutputin interfaceio.quarkus.cli.common.OutputProvider
-
run
- Specified by:
runin interfaceio.quarkus.runtime.QuarkusApplication- Throws:
Exception
-
checkMissingCommand
Process the arguments passed and return an identifier of the potentially missing subcommand if any.- Parameters:
root- the root commandargs- the arguments passed to the root command- Returns:
- the missing subcommand wrapped in
Optionalor empty if no subcommand is missing.
-
call
-