Class CAShell
java.lang.Object
com.io7m.cardant.shell.internal.CAShell
- All Implemented Interfaces:
CAShellType, AutoCloseable
The basic shell.
-
Constructor Summary
ConstructorsConstructorDescriptionCAShell(com.io7m.repetoir.core.RPServiceDirectoryType inServices, org.jline.terminal.Terminal inTerminal, PrintWriter inWriter, Map<String, CAShellCmdType> inCommandsNamed, org.jline.reader.LineReader inReader) The basic shell. -
Method Summary
-
Constructor Details
-
CAShell
public CAShell(com.io7m.repetoir.core.RPServiceDirectoryType inServices, org.jline.terminal.Terminal inTerminal, PrintWriter inWriter, Map<String, CAShellCmdType> inCommandsNamed, org.jline.reader.LineReader inReader) The basic shell.- Parameters:
inServices- The service directoryinTerminal- The terminalinWriter- The writerinCommandsNamed- The named commandsinReader- The line reader
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
commands
- Specified by:
commandsin interfaceCAShellType- Returns:
- The set of commands exposed by the shell
-
run
public void run()Description copied from interface:CAShellTypeRun the shell until the user asks it to exit (or it reaches EOF).- Specified by:
runin interfaceCAShellType
-
exitCode
public int exitCode()- Specified by:
exitCodein interfaceCAShellType- Returns:
- The shell exit kind
-
toString
-