FormatRead

mill.scalalib.dependency.Format.FormatRead
object FormatRead extends Simple[Format]

Attributes

Source
Format.scala
Graph
Supertypes
trait Simple[Format]
trait ShortNamed[Format]
trait Terminal[Format]
trait TokensReader[Format]
class Object
trait Matchable
class Any
Show all
Self type
FormatRead.type

Members list

Value members

Concrete methods

override def read(strs: Seq[String]): Either[String, Format]

Converts the given input tokens to a T or an error String. The input is a Seq because input tokens can be passed more than once, e.g. --foo bar --foo qux will result in read being passed ["foo", "qux"]

Converts the given input tokens to a T or an error String. The input is a Seq because input tokens can be passed more than once, e.g. --foo bar --foo qux will result in read being passed ["foo", "qux"]

Attributes

Definition Classes
Simple
Source
Format.scala
override def shortName: String

The label that shows up in the CLI help message, e.g. the bar in --foo <bar>

The label that shows up in the CLI help message, e.g. the bar in --foo <bar>

Attributes

Definition Classes
ShortNamed
Source
Format.scala

Inherited methods

def allowEmpty: Boolean

Whether this CLI param can be no passed from the CLI, even if a default value is not specified. In that case, read receives an empty Seq

Whether this CLI param can be no passed from the CLI, even if a default value is not specified. In that case, read receives an empty Seq

Attributes

Inherited from:
Simple
Source
TokensReader.scala
def alwaysRepeatable: Boolean

Whether is CLI param is repeatable

Whether is CLI param is repeatable

Attributes

Inherited from:
Simple
Source
TokensReader.scala
def isClass: Boolean

Attributes

Inherited from:
TokensReader
Source
TokensReader.scala
def isConstant: Boolean

Attributes

Inherited from:
TokensReader
Source
TokensReader.scala
def isFlag: Boolean

Attributes

Inherited from:
TokensReader
Source
TokensReader.scala
def isLeftover: Boolean

Attributes

Inherited from:
TokensReader
Source
TokensReader.scala
override def isSimple: Boolean

Attributes

Definition Classes
Simple -> TokensReader
Inherited from:
Simple
Source
TokensReader.scala