Package org.jline.shell.impl
Class HistoryCommands
- java.lang.Object
-
- org.jline.shell.impl.SimpleCommandGroup
-
- org.jline.shell.impl.HistoryCommands
-
- All Implemented Interfaces:
CommandGroup
public class HistoryCommands extends SimpleCommandGroup
Built-in history command group.Provides the
historycommand 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
Constructors Constructor Description HistoryCommands(LineReader reader)Creates history commands using the given line reader's history.
-
Method Summary
-
Methods inherited from class org.jline.shell.impl.SimpleCommandGroup
commands, name
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jline.shell.CommandGroup
command, hasCommand
-
-
-
-
Constructor Detail
-
HistoryCommands
public HistoryCommands(LineReader reader)
Creates history commands using the given line reader's history.- Parameters:
reader- the line reader
-
-