← ZIO Cli docs

Bool

zio.cli.PrimType.Bool
See theBool companion object
final case class Bool(defaultValue: Option[Boolean]) extends PrimType[Boolean]

Type representing a boolean value. True value can be passed as "true", "1", "y", "yes" or "on". False value can be passed as "false", "o", "n", "no" or "off".

Value parameters

defaultValue

Default value used then param is not provided

Attributes

Companion
object
Source
PrimType.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait PrimType[Boolean]
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, Boolean]

Attributes

Source
PrimType.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

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

Attributes

Inherited from:
PrimType
Source
PrimType.scala
final def validate(value: String): IO[String, Boolean]

Attributes

Inherited from:
PrimType
Source
PrimType.scala

Concrete fields

lazy val choices: Option[String]

Attributes

Source
PrimType.scala
lazy val helpDoc: Span

Attributes

Source
PrimType.scala
lazy val isBool: Boolean

Attributes

Source
PrimType.scala
lazy val typeName: String

Attributes

Source
PrimType.scala