public class JLineShell extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
JLineShell.BuiltIns
The set of built in commands.
|
static class |
JLineShell.SetCommands
An enumeration of the arguments to the set command.
|
| Constructor and Description |
|---|
JLineShell(CommandSet userCommands)
Creates a JLineShell with the given set of user commands.
|
JLineShell(CommandSet userCommands,
jline.console.ConsoleReader reader) |
JLineShell(CommandSet userCommands,
jline.console.ConsoleReader reader,
String prompt) |
JLineShell(CommandSet userCommands,
String prompt) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] argv)
Temporary method waiting for feedback.
|
void |
run()
Run the command shell.
|
public JLineShell(CommandSet userCommands) throws IOException
userCommands - The user defined commands which will be merged with
the built-in commands provided by the shell itself. The CommandSet passed
in can change dynamically (for example if it is in fact a
CompositeCommandSet commands can be added and removed dynamically).IOException - If something goes horribly wrong.public JLineShell(CommandSet userCommands, jline.console.ConsoleReader reader)
public JLineShell(CommandSet userCommands, String prompt) throws IOException
IOExceptionpublic JLineShell(CommandSet userCommands, jline.console.ConsoleReader reader, String prompt)
public void run()
throws IOException
IOException - If something goes horribly wrong.Copyright © 2016 LSST. All rights reserved.