StringEntry

scala.cli.config.Key$.StringEntry
final class StringEntry(val prefix: Seq[String], val name: String) extends Key[String]

Attributes

Graph
Supertypes
class Key[String]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def asString(value: String): Seq[String]

Converts a value of this key to a sequence of strings

Converts a value of this key to a sequence of strings

Such a sequence can be printed in the console, and converted back to a T with fromString.

Attributes

def fromString(values: Seq[String]): Either[MalformedValue, String]

Reads a value of this key from a sequence of string

Reads a value of this key from a sequence of string

Attributes

def parse(json: Array[Byte]): Either[EntryError, String]

Try to parse a value of this key

Try to parse a value of this key

Attributes

def write(value: String): Array[Byte]

Converts a value of this key to JSON

Converts a value of this key to JSON

Attributes

Returns:

UTF-8 encoded JSON

Inherited methods

final def fullName: String

The fully qualified name of this key

The fully qualified name of this key

Attributes

Inherited from:
Key
def isPasswordOption: Boolean

Whether this key corresponds to a password (see Key.PasswordEntry)

Whether this key corresponds to a password (see Key.PasswordEntry)

Attributes

Inherited from:
Key

Concrete fields

val name: String

Key name, such as "b" in "foo.a.b"

Key name, such as "b" in "foo.a.b"

Attributes

val prefix: Seq[String]

Key prefix, such as "foo.a" in "foo.a.b"

Key prefix, such as "foo.a" in "foo.a.b"

Attributes