JLineCli

sline.jline.JLineCli
class JLineCli(val reader: LineReader) extends Cli

JVM implementation of the CLI using JLine

Attributes

Graph
Supertypes
trait Cli
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def readLine(prompt: String): Option[String]

Read a line of input using the given prompt

Read a line of input using the given prompt

Attributes

Returns

Some(line) if a line was read, or None if either the input ended or the user pressed Ctrl+C

Definition Classes
Cli

Inherited methods

def lines(prompt: String): Iterator[String]

An iterator over the lines read, for convenience.

An iterator over the lines read, for convenience.

If you use this method, note that each line will use the same prompt.

Value parameters

prompt

The prompt to use

Attributes

Inherited from:
Cli

Concrete fields

val reader: LineReader