Class IdAShell
java.lang.Object
com.io7m.idstore.shell.admin.internal.IdAShell
- All Implemented Interfaces:
IdAShellType,AutoCloseable
The basic shell.
-
Constructor Summary
ConstructorsConstructorDescriptionIdAShell(IdAClientSynchronousType inClient, IdAShellOptions inOptions, org.jline.terminal.Terminal inTerminal, PrintWriter inWriter, Map<String, IdAShellCmdType> inCommandsNamed, org.jline.reader.LineReader inReader) The basic shell. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Collection<com.io7m.quarrel.core.QCommandType>commands()intexitCode()voidrun()Run the shell until the user asks it to exit (or it reaches EOF).
-
Constructor Details
-
IdAShell
public IdAShell(IdAClientSynchronousType inClient, IdAShellOptions inOptions, org.jline.terminal.Terminal inTerminal, PrintWriter inWriter, Map<String, IdAShellCmdType> inCommandsNamed, org.jline.reader.LineReader inReader) The basic shell.- Parameters:
inClient- The clientinOptions- The shell optionsinCommandsNamed- The named commandsinReader- The line readerinTerminal- The terminalinWriter- The writer
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
commands
- Specified by:
commandsin interfaceIdAShellType- Returns:
- The set of commands exposed by the shell
-
run
public void run()Description copied from interface:IdAShellTypeRun the shell until the user asks it to exit (or it reaches EOF).- Specified by:
runin interfaceIdAShellType
-
exitCode
public int exitCode()- Specified by:
exitCodein interfaceIdAShellType- Returns:
- The shell exit code
-