Class HistoryCommands

  • All Implemented Interfaces:
    CommandGroup

    public class HistoryCommands
    extends SimpleCommandGroup
    Built-in history command group.

    Provides the history command with the following usage:

    • history ? list all history entries
    • history N ? list last N entries
    • history -c or --clear ? clear history
    • history -s or --save ? save history to file
    • history /pattern ? search history by regex
    Since:
    4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      HistoryCommands​(org.jline.reader.LineReader reader)
      Creates history commands using the given line reader's history.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HistoryCommands

        public HistoryCommands​(org.jline.reader.LineReader reader)
        Creates history commands using the given line reader's history.
        Parameters:
        reader - the line reader