java.lang.Object
org.springframework.shell.jline.command.History
All Implemented Interfaces:
Command

public class History extends Object implements Command
A command that displays all previously run commands, optionally dumping them to a file readable by Script.
Author:
Eric Bottard, Mahmoud Ben Hassine
  • Constructor Details

    • History

      public History(org.jline.reader.History jLineHistory)
  • Method Details

    • getName

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

      public String getDescription()
      Description copied from interface: Command
      Get a short description of the command.
      Specified by:
      getDescription in interface Command
      Returns:
      the description of the command
    • getGroup

      public String getGroup()
      Description copied from interface: Command
      Get the group of the command.
      Specified by:
      getGroup in interface Command
      Returns:
      the group of the command
    • execute

      public ExitStatus execute(CommandContext commandContext) throws Exception
      Description copied from interface: Command
      Execute the command within the given context.
      Specified by:
      execute in interface Command
      Parameters:
      commandContext - the context of the command
      Returns:
      the exit status of the command
      Throws:
      Exception