Enumeration

zio.cli.PrimType.Enumeration
final case class Enumeration[A](cases: (String, A)*) extends PrimType[A]

Type representing a value selected from set of allowed values.

Value parameters

cases

lists of allowed parameter-value pairs

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait PrimType[A]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def validate(value: Option[String], conf: CliConfig): IO[String, A]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def validate(value: String, conf: CliConfig): IO[String, A]

Attributes

Inherited from:
PrimType
final def validate(value: String): IO[String, A]

Attributes

Inherited from:
PrimType

Concrete fields

lazy val choices: Option[String]
lazy val helpDoc: Span
lazy val isBool: Boolean
lazy val typeName: String