Package io.trino.cli
Class InputReader
java.lang.Object
io.trino.cli.InputReader
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionInputReader(ClientOptions.EditingMode editingMode, Optional<Path> historyFile, boolean disableAutoSuggestion, org.jline.reader.Completer... completers) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.jline.reader.Historyorg.jline.terminal.Terminal
-
Constructor Details
-
InputReader
public InputReader(ClientOptions.EditingMode editingMode, Optional<Path> historyFile, boolean disableAutoSuggestion, org.jline.reader.Completer... completers) throws IOException - Throws:
IOException
-
-
Method Details
-
readLine
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getHistory
public org.jline.reader.History getHistory() -
getTerminal
public org.jline.terminal.Terminal getTerminal()
-