Package com.ocient.cli
Class CLI
java.lang.Object
com.ocient.cli.CLI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandResultstatic chargetQuote()static org.jline.reader.LineReaderstatic booleanstatic voidstatic StringReads lines until it detects full command.static StringscrubCommand(String cmd) static voidsetLineReader(org.jline.reader.LineReader newReader) Use ONLY for unit testing !! Allows for feeding bytes to the CLI
-
Constructor Details
-
CLI
public CLI()
-
-
Method Details
-
isInitialized
public static boolean isInitialized() -
getReader
public static org.jline.reader.LineReader getReader() -
getQuote
public static char getQuote() -
main
-
readFullCommand
Reads lines until it detects full command. Removes comments.- Returns:
- a full command str
-
setLineReader
public static void setLineReader(org.jline.reader.LineReader newReader) Use ONLY for unit testing !! Allows for feeding bytes to the CLI -
scrubCommand
-
extractTo
-