Class HelpCommand

java.lang.Object
com.aspectran.shell.command.AbstractCommand
com.aspectran.shell.command.builtins.HelpCommand
All Implemented Interfaces:
Command

public class HelpCommand extends AbstractCommand
Display information about builtin commands.
  • Constructor Details

  • Method Details

    • execute

      public void execute(@NonNull ParsedOptions options, ShellConsole console) throws Exception
      Description copied from interface: Command
      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:
      Exception - if an error occurs during command execution
    • getArgumentsList

      public List<Arguments> getArgumentsList()
      Specified by:
      getArgumentsList in interface Command
      Overrides:
      getArgumentsList in class AbstractCommand
    • getDescriptor

      public Command.Descriptor getDescriptor()
      Description copied from interface: Command
      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