Groovy 2.2.0

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
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
HistoryCommand(Groovysh shell)

 
Method Summary
protected List createCompletors()

Object execute(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

def do_clear


do_flush

def do_flush


do_recall

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.


do_show

def do_show


 
Constructor Detail

HistoryCommand

HistoryCommand(Groovysh shell)


 
Method Detail

createCompletors

protected List createCompletors()


execute

Object execute(List args)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.