Class IdAShell
java.lang.Object
com.io7m.idstore.shell.admin.internal.IdAShell
- All Implemented Interfaces:
IdAShellType
,AutoCloseable
The basic shell.
-
Constructor Summary
ConstructorDescriptionIdAShell
(com.io7m.repetoir.core.RPServiceDirectoryType inServices, org.jline.terminal.Terminal inTerminal, PrintWriter inWriter, Map<String, IdAShellCmdType> inCommandsNamed, org.jline.reader.LineReader inReader) The basic shell. -
Method Summary
-
Constructor Details
-
IdAShell
public IdAShell(com.io7m.repetoir.core.RPServiceDirectoryType inServices, org.jline.terminal.Terminal inTerminal, PrintWriter inWriter, Map<String, IdAShellCmdType> 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:
close
in interfaceAutoCloseable
- Throws:
Exception
-
commands
- Specified by:
commands
in interfaceIdAShellType
- Returns:
- The set of commands exposed by the shell
-
run
public void run()Description copied from interface:IdAShellType
Run the shell until the user asks it to exit (or it reaches EOF).- Specified by:
run
in interfaceIdAShellType
-
exitCode
public int exitCode()- Specified by:
exitCode
in interfaceIdAShellType
- Returns:
- The shell exit code
-
toString
-