RepeatedNel

oxygen.cli.Values.RepeatedNel
final case class RepeatedNel[A](parser: Values[A], breakOnAnyError: Boolean) extends Values[NonEmptyList[A]]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Values[NonEmptyList[A]]
trait Parser[NonEmptyList[A]]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def buildInternal(usedParams: Set[SimpleName]): Either[BuildError, (Set[SimpleName], Values[NonEmptyList[A]])]

This should do 2 things:

This should do 2 things:

  1. Fail if there are duplicate param names
  2. Convert Defaultable.Auto into Defaultable.Some/Defaultable.None based on start of long name

Attributes

Definition Classes
override def helpMessage: ValueMessage

Attributes

Definition Classes
override def optionalName: Option[Name]

Attributes

Definition Classes
override def parseValues(values: List[ValueLike]): ParseResult[NonEmptyList[A]]

Attributes

Definition Classes

Inherited methods

final def <||[A2 >: NonEmptyList[A]](that: Values[A2]): Values[A2]

Attributes

Inherited from:
Values
final def <||[A2 >: NonEmptyList[A]](that: Parser[A2]): Parser[A2]

Attributes

Inherited from:
Parser
final def <||>[B](that: Values[B]): Values[Either[NonEmptyList[A], B]]

Attributes

Inherited from:
Values
final def <||>[B](that: Parser[B]): Parser[Either[NonEmptyList[A], B]]

Attributes

Inherited from:
Parser
final def ^>>[B](that: Values[B])(implicit zip: Zip[NonEmptyList[A], B]): Values[zip.Out]

Attributes

Inherited from:
Values
final def ^>>[B](that: Parser[B])(implicit zip: Zip[NonEmptyList[A], B]): Parser[zip.Out]

Attributes

Inherited from:
Parser
final def bracketed(name: LongName): Values[NonEmptyList[A]]

Attributes

Inherited from:
Parser
final def build: Either[BuildError, Parser[Either[HelpType, NonEmptyList[A]]]]

Attributes

Inherited from:
Parser
override def map[B](f: NonEmptyList[A] => B): Values[B]

Attributes

Definition Classes
Inherited from:
Values
override def mapOrFail[B](f: NonEmptyList[A] => Either[String, B]): Values[B]

Attributes

Definition Classes
Inherited from:
Values
final def optional(breakOnAnyError: Boolean): Values[Option[NonEmptyList[A]]]

Attributes

Inherited from:
Values
final def optional: Values[Option[NonEmptyList[A]]]

Attributes

Inherited from:
Values
final override def parse(values: List[ValueLike], params: List[ParamLike]): ParseResult[NonEmptyList[A]]

Attributes

Definition Classes
Inherited from:
Values
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def repeated(breakOnAnyError: Boolean): Values[List[NonEmptyList[A]]]

Attributes

Inherited from:
Values
final def repeated: Values[List[NonEmptyList[A]]]

Attributes

Inherited from:
Values
final def repeatedNel(breakOnAnyError: Boolean): Values[NonEmptyList[NonEmptyList[A]]]

Attributes

Inherited from:
Values
final def repeatedNel: Values[NonEmptyList[NonEmptyList[A]]]

Attributes

Inherited from:
Values
final def withDefault[A2 >: NonEmptyList[A]](default: A2, breakOnAnyError: Boolean): Values[A2]

Attributes

Inherited from:
Values
final def withDefault[A2 >: NonEmptyList[A]](default: A2): Values[A2]

Attributes

Inherited from:
Values
final def withOptionalDefault[A2 >: NonEmptyList[A]](default: Option[A2], breakOnAnyError: Boolean): Values[A2]

Attributes

Inherited from:
Values
final def withOptionalDefault[A2 >: NonEmptyList[A]](default: Option[A2]): Values[A2]

Attributes

Inherited from:
Values