Class History
java.lang.Object
org.springframework.shell.jline.command.History
- All Implemented Interfaces:
Command
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
Command.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(CommandContext commandContext) Execute the command within the given context.Get a short description of the command.getGroup()Get the group of the command.getName()Get the name of the command.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.shell.core.command.Command
getAliases, getAvailabilityProvider, getCompletionProvider, getHelp, getOptions, isHidden
-
Constructor Details
-
History
public History(org.jline.reader.History jLineHistory)
-
-
Method Details
-
getName
Description copied from interface:CommandGet the name of the command. -
getDescription
Description copied from interface:CommandGet a short description of the command.- Specified by:
getDescriptionin interfaceCommand- Returns:
- the description of the command
-
getGroup
Description copied from interface:CommandGet the group of the command. -
execute
Description copied from interface:CommandExecute the command within the given context.
-