Interface Command

    • Method Detail

      • getArgumentsList

        java.util.List<Arguments> getArgumentsList()
      • execute

        void execute​(ParsedOptions options,
                     Console console)
              throws java.lang.Exception
        This method will be called as the starting point to execute the logic for the action mapped to this command.
        Parameters:
        options - the parsed options
        console - the console
        Throws:
        java.lang.Exception - if an error occurs during command execution
      • printHelp

        void printHelp​(Console console)
        Prints the usage statement for the specified command.
        Parameters:
        console - the Console instance
      • printQuickHelp

        void printQuickHelp​(Console console)
      • getDescriptor

        Command.Descriptor getDescriptor()
        This method returns an instance of Command.Descriptor. The descriptor is meta information about the command.
        Returns:
        a Descriptor that is meta information about the command