|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Shell
Specifies the contract for an interactive shell.
Any interactive shell class which implements these methods can be launched by the roo-bootstrap mechanism.
It is envisaged implementations will be provided for JLine initially, with possible implementations for Eclipse in the future.
Method Summary | |
---|---|
boolean |
executeCommand(String line)
Runs the specified command. |
ExitShellRequest |
getExitShellRequest()
|
File |
getHome()
Returns the home directory of the current running shell instance |
boolean |
isDevelopmentMode()
|
void |
promptLoop()
Presents a console prompt and allows the user to interact with the shell. |
void |
setDevelopmentMode(boolean developmentMode)
Indicates the shell should switch into a lower-level development mode. |
void |
setPromptPath(String path)
Changes the "path" displayed in the shell prompt. |
Methods inherited from interface org.springframework.roo.shell.event.ShellStatusProvider |
---|
addShellStatusListener, getShellStatus, removeShellStatusListener |
Methods inherited from interface org.springframework.roo.shell.ShellPromptAccessor |
---|
getShellPrompt |
Method Detail |
---|
void promptLoop()
ExitShellRequest getExitShellRequest()
boolean executeCommand(String line)
line
- to execute (required)
void setDevelopmentMode(boolean developmentMode)
developmentMode
- true if development mode should be enabled, false otherwiseboolean isDevelopmentMode()
void setPromptPath(String path)
path
- to set (can be null or empty; must NOT be formatted in any special way eg ANSI codes)File getHome()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |