Class ExplainCommand

    • Constructor Detail

      • ExplainCommand

        public ExplainCommand()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Command
        Name of the command.
        Specified by:
        getName in interface Command
        Returns:
        name
      • getDescription

        public String getDescription()
        Description copied from interface: Command
        Brief description of the command.
        Specified by:
        getDescription in interface Command
        Returns:
        description
      • getUsage

        public String getUsage()
        Description copied from interface: Command
        Command-line usage for the command.
        Specified by:
        getUsage in interface Command
        Returns:
        usage
      • getOptions

        public org.apache.commons.cli.Options getOptions()
        Description copied from interface: Command
        Command-line options for the command.
        Specified by:
        getOptions in interface Command
        Returns:
        options
      • main

        public void main​(String[] args)
        Handle the command-line and file operations for the ExplainOperation.
        Specified by:
        main in interface Command
        Parameters:
        args - strings to use as arguments
      • execute

        public CommandState execute​(CommandState state,
                                    String[] args)
                             throws Exception
        Description copied from interface: Command
        All commands offer an execute method that can be chained from previous commands.
        Specified by:
        execute in interface Command
        Parameters:
        state - the input from the previous command, or null
        args - the command-line arguments
        Returns:
        the updated state, or a new state, or null
        Throws:
        Exception - on any problem