Groovy Documentation

org.codehaus.groovy.tools.shell.commands
[Groovy] Class HistoryCommand

java.lang.Object
  org.codehaus.groovy.tools.shell.CommandSupport
      org.codehaus.groovy.tools.shell.ComplexCommandSupport
          org.codehaus.groovy.tools.shell.commands.HistoryCommand

class HistoryCommand
extends ComplexCommandSupport

The 'history' command.

Authors:
Jason Dillon
Version:
\$Id\$


Field Summary
 
Fields inherited from class ComplexCommandSupport
defaultFunction, functions
 
Fields inherited from class CommandSupport
NEWLINE, io, log, messages, registry, shell
 
Property Summary
java.lang.Object do_clear

java.lang.Object do_flush

java.lang.Object do_recall

history show shows a list of indexes and past commands. recall serves to rerun one of those by their index.

java.lang.Object do_show

 
Constructor Summary
HistoryCommand(Groovysh shell)

 
Method Summary
protected java.util.List createCompletors()

java.lang.Object execute(java.util.List args)

 
Methods inherited from class ComplexCommandSupport
createCompleters, execute, executeFunction, getFunctions, loadFunction
 
Methods inherited from class CommandSupport
alias, assertNoArguments, createCompleters, fail, fail, getBinding, getBuffer, getBuffers, getClassLoader, getCompleter, getDescription, getHelp, getHistory, getImports, getUsage, getVariables
 

Property Detail

do_clear

java.lang.Object do_clear


do_flush

java.lang.Object do_flush


do_recall

java.lang.Object 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.


do_show

java.lang.Object do_show


 
Constructor Detail

HistoryCommand

HistoryCommand(Groovysh shell)


 
Method Detail

createCompletors

protected java.util.List createCompletors()


execute

java.lang.Object execute(java.util.List args)


 

Groovy Documentation