class HistoryCommand extends ComplexCommandSupport
The 'history' command.
| Modifiers | Name | Description | 
|---|---|---|
| static String | COMMAND_NAME | 
| Fields inherited from class | Fields | 
|---|---|
| class ComplexCommandSupport | defaultFunction, functions | 
| class CommandSupport | NEWLINE, io, log, messages, registry, shell | 
| Properties inherited from class | Properties | 
|---|---|
| class ComplexCommandSupport | do_all | 
| class CommandSupport | aliases, hidden, name, shortcut | 
| Constructor and description | 
|---|
| HistoryCommand(Groovysh shell) | 
| Methods inherited from class | Name | 
|---|---|
| class ComplexCommandSupport | createCompleters, execute, executeFunction, loadFunction | 
| class CommandSupport | alias, assertNoArguments, createCompleters, fail, fail, getAliases, getBinding, getBuffer, getBuffers, getClassLoader, getCompleter, getDescription, getHelp, getHidden, getHistory, getImports, getName, getShortcut, getUsage, getVariables | 
history recall - serves to rerun a command from the history by its index. There is a moving window of indexes, so the first valid index will usually be greater than zero.
history show - shows a list of indexes and past commands
Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.