[Groovy] Class HistoryCommand
- org.codehaus.groovy.tools.shell.commands.HistoryCommand
The 'history' command.
- Authors:
- Jason Dillon
Field Summary
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 Summary
Type | Name and description |
---|---|
def |
do_clear |
def |
do_flush |
def |
do_recall history show shows a list of indexes and past commands. recall serves to rerun one of those by their index. |
def |
do_show |
Constructor Summary
Constructor and description |
---|
HistoryCommand
(Groovysh shell) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected List |
createCompleters() | |
Object |
execute(List<String> args) |
Inherited Methods Summary
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 |
Field Detail
public static final String COMMAND_NAME
Property Detail
def do_clear
def do_flush
def do_recall
history show shows a list of indexes and past commands. recall serves to rerun one of those by their index. There is is moving window of indexes, so the first valid index will usually be greater than zero.
def do_show
Constructor Detail
HistoryCommand(Groovysh shell)
Method Detail
@Override protected List createCompleters()
@Override Object execute(List<String> args)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/tools/shell/commands/HistoryCommand.html