Class QuarkusCli

java.lang.Object
io.quarkus.cli.QuarkusCli
All Implemented Interfaces:
io.quarkus.runtime.QuarkusApplication, Callable<Integer>

public class QuarkusCli extends Object implements io.quarkus.runtime.QuarkusApplication, Callable<Integer>
  • Field Details

    • factory

      @Inject picocli.CommandLine.IFactory factory
    • registryClient

      protected RegistryClientMixin registryClient
    • helpOption

      protected HelpOption helpOption
    • showVersion

      public boolean showVersion
    • output

    • spec

      protected picocli.CommandLine.Model.CommandSpec spec
    • propertiesOptions

      protected PropertiesOptions propertiesOptions
  • Constructor Details

    • QuarkusCli

      public QuarkusCli()
  • Method Details

    • getOutput

      public OutputOptionMixin getOutput()
    • run

      public int run(String... args) throws Exception
      Specified by:
      run in interface io.quarkus.runtime.QuarkusApplication
      Throws:
      Exception
    • checkMissingCommand

      public Optional<String> checkMissingCommand(picocli.CommandLine root, String[] args)
      Process the arguments passed and return an identifier of the potentially missing subcommand if any.
      Parameters:
      root - the root command
      args - the arguments passed to the root command
      Returns:
      the missing subcommand wrapped in Optional or empty if no subcommand is missing.
    • call

      public Integer call() throws Exception
      Specified by:
      call in interface Callable<Integer>
      Throws:
      Exception