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

public class History extends org.springframework.shell.core.command.AbstractCommand
A command that displays all previously run commands, optionally dumping them to a file readable by Script.
Author:
Eric Bottard, Mahmoud Ben Hassine
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.shell.core.command.Command

    org.springframework.shell.core.command.Command.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    History(org.jline.reader.History jLineHistory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.shell.core.command.ExitStatus
    doExecute(org.springframework.shell.core.command.CommandContext commandContext)
     
     

    Methods inherited from class org.springframework.shell.core.command.AbstractCommand

    equals, execute, getAliases, getArguments, getAvailabilityProvider, getCompletionProvider, getDescription, getExitStatusExceptionMapper, getGroup, getName, getOptions, hashCode, isHelp, isHidden, println, setAliases, setArguments, setAvailabilityProvider, setCompletionProvider, setExitStatusExceptionMapper, setOptions

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • History

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

    • getHelp

      public String getHelp()
      Specified by:
      getHelp in interface org.springframework.shell.core.command.Command
      Overrides:
      getHelp in class org.springframework.shell.core.command.AbstractCommand
    • doExecute

      public org.springframework.shell.core.command.ExitStatus doExecute(org.springframework.shell.core.command.CommandContext commandContext) throws Exception
      Specified by:
      doExecute in class org.springframework.shell.core.command.AbstractCommand
      Throws:
      Exception