Class History
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 -
Method Summary
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
-
Constructor Details
-
History
public History(org.jline.reader.History jLineHistory)
-
-
Method Details
-
getHelp
- Specified by:
getHelpin interfaceorg.springframework.shell.core.command.Command- Overrides:
getHelpin classorg.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:
doExecutein classorg.springframework.shell.core.command.AbstractCommand- Throws:
Exception
-