Package org.jline.shell.impl
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 org.jline.shell.impl.SimpleCommandGroup
commands, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jline.shell.CommandGroup
command, hasCommand
-
Constructor Details
-
HistoryCommands
Creates history commands using the given line reader's history.- Parameters:
reader- the line reader
-