Class HistoryCommands
java.lang.Object
org.jline.shell.impl.SimpleCommandGroup
org.jline.shell.impl.HistoryCommands
- All Implemented Interfaces:
CommandGroup
Built-in history command group.
Provides the history command with the following usage:
history? list all history entrieshistory N? list last N entrieshistory -cor--clear? clear historyhistory -sor--save? save history to filehistory /pattern? search history by regex
- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryCommands(LineReader reader) Creates history commands using the given line reader's history. -
Method Summary
Methods inherited from class SimpleCommandGroup
commands, nameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommandGroup
command, hasCommand
-
Constructor Details
-
HistoryCommands
Creates history commands using the given line reader's history.- Parameters:
reader- the line reader
-