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
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]

Inherited methods

Attributes

Inherited from:
Product

Attributes

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

Attributes

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

Attributes

Inherited from:
PrimType

Concrete fields

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