Class MainCommand

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Object>, picocli.CommandLine.IExitCodeGenerator

    class MainCommand
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.Object>, picocli.CommandLine.IExitCodeGenerator
    • Field Detail

      • helpRequested

        private boolean helpRequested
      • helpRequested2

        private boolean helpRequested2
      • allParameters

        private java.util.List<java.lang.String> allParameters
      • commandSpec

        picocli.CommandLine.Model.CommandSpec commandSpec
    • Method Detail

      • call

        public java.lang.Object call()
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Object>
      • getExitCode

        public int getExitCode()
        Specified by:
        getExitCode in interface picocli.CommandLine.IExitCodeGenerator
      • runCommand

        private java.lang.Object runCommand​(java.lang.String subcommand,
                                            java.util.Optional<java.lang.String> triggeringOption)
      • printDeprecationWarning

        private static void printDeprecationWarning​(java.lang.String subcommand,
                                                    java.util.Optional<java.lang.String> triggeringOption,
                                                    picocli.CommandLine commandLine)
      • run

        CommandResult<?> run​(java.io.PrintWriter out,
                             java.io.PrintWriter err,
                             java.lang.String[] args)
      • runCommand

        private static CommandResult<?> runCommand​(java.io.PrintWriter out,
                                                   java.io.PrintWriter err,
                                                   java.lang.String[] args,
                                                   java.lang.Object command)
      • runCommand

        private static CommandResult<java.lang.Object> runCommand​(java.io.PrintWriter out,
                                                                  java.io.PrintWriter err,
                                                                  java.lang.String[] args,
                                                                  picocli.CommandLine commandLine)
      • getLikelyExecutedCommand

        private static picocli.CommandLine getLikelyExecutedCommand​(picocli.CommandLine commandLine)
        Get the most likely executed subcommand, if any, or the main command otherwise.
        See Also:
        Executing Commands with Subcommands