public interface Shell extends UIProvider, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
org.jboss.forge.furnace.spi.ListenerRegistration<CommandExecutionListener> |
addCommandExecutionListener(CommandExecutionListener listener)
Add a
CommandExecutionListener, returning the ListenerRegistration with which it may subsequently
be removed. |
org.jboss.forge.furnace.spi.ListenerRegistration<CommandNotFoundListener> |
addCommandNotFoundListener(CommandNotFoundListener listener)
Add a
CommandNotFoundListener, returning the ListenerRegistration with which it may subsequently
be removed. |
org.jboss.aesh.console.AeshConsole |
getConsole()
Get the native
AeshConsole object. |
Resource<?> |
getCurrentResource()
Returns the current working directory.
|
void |
setCurrentResource(Resource<?> resource)
Sets the current working directory
|
getDesktop, getOutput, isGUIcloseorg.jboss.aesh.console.AeshConsole getConsole()
AeshConsole object.void setCurrentResource(Resource<?> resource)
resource - should be a FileResourceIllegalArgumentException - if resource is nullResource<?> getCurrentResource()
org.jboss.forge.furnace.spi.ListenerRegistration<CommandExecutionListener> addCommandExecutionListener(CommandExecutionListener listener)
CommandExecutionListener, returning the ListenerRegistration with which it may subsequently
be removed.org.jboss.forge.furnace.spi.ListenerRegistration<CommandNotFoundListener> addCommandNotFoundListener(CommandNotFoundListener listener)
CommandNotFoundListener, returning the ListenerRegistration with which it may subsequently
be removed.Copyright © 2015 JBoss by Red Hat. All rights reserved.