org.rhq.core.pc.standaloneContainer
Class History
java.lang.Object
org.rhq.core.pc.standaloneContainer.History
public class History
- extends Object
Handle command line history
- Author:
- Heiko W. Rupp
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
History
public History()
handleHistory
public String handleHistory(String answer)
- Handle processing of the command history. This gives some csh like commands
and records the commands given. Nice side effect is the possibility to write the
history to disk and to use this later as input so that testing can be scripted.
Commands are:
- !! : repeat the last action
- !? : show the history
- !h : show history help
- !nnn : repeat history item with number nnn
- !w file : write the history to the file file
- !dnnn : delete the history item with number nnn
- Parameters:
answer - the input given on the command line
- Returns:
- a command or '!' if no command substitution from the history was possible.
size
public int size()
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.