← ZIO Cli docs

PrimType

zio.cli.PrimType
See thePrimType companion object
sealed trait PrimType[+A]

A PrimType represents the primitive types supported by ZIO CLI.

Each primitive type has a way to parse and validate from a string.

Attributes

Companion
object
Source
PrimType.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Bool
object Decimal
object Duration
class Enumeration[A]
object Instant
object Integer
object LocalDate
object LocalDateTime
object LocalTime
object MonthDay
object OffsetTime
class Path
object Period
object Text
object Year
object YearMonth
object ZoneId
object ZoneOffset
object ZonedDateTime
Show all
Self type

Members list

Value members

Abstract methods

Attributes

Source
PrimType.scala
def helpDoc: Span

Attributes

Source
PrimType.scala

Attributes

Source
PrimType.scala

Attributes

Source
PrimType.scala
def validate(value: Option[String], conf: CliConfig): IO[String, A]

Attributes

Source
PrimType.scala

Concrete methods

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

Attributes

Source
PrimType.scala
final def validate(value: String, conf: CliConfig): IO[String, A]

Attributes

Source
PrimType.scala