← ZIO Cli docs

Args

zio.cli.Args
See theArgs companion trait
object Args

Attributes

Companion
trait
Source
Args.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Args.type

Members list

Type members

Classlikes

final case class Both[+A, +B](head: Args[A], tail: Args[B]) extends Args[(A, B)]

Attributes

Source
Args.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Args[(A, B)]
class Object
trait Matchable
class Any
Show all
case object Empty extends Args[Unit]

Attributes

Source
Args.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Args[Unit]
class Object
trait Matchable
class Any
Show all
Self type
Empty.type
final case class Map[A, B](value: Args[A], f: A => Either[HelpDoc, B]) extends Args[B]

Attributes

Source
Args.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Args[B]
class Object
trait Matchable
class Any
Show all
final case class Single[+A](pseudoName: Option[String], primType: PrimType[A], description: HelpDoc = ...) extends Args[A]

Attributes

Source
Args.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Args[A]
class Object
trait Matchable
class Any
Show all
final case class Variadic[+A](value: Args[A], min: Option[Int], max: Option[Int]) extends Args[List[A]]

Attributes

Source
Args.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Args[List[A]]
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def bool(name: String): Args[Boolean]

Creates a boolean argument with a custom argument name

Creates a boolean argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Boolean argument

Source
Args.scala
def decimal(name: String): Args[BigDecimal]

Creates a decimal argument with a custom argument name

Creates a decimal argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Decimal argument

Source
Args.scala
def duration(name: String): Args[Duration]

Creates a duration argument with a custom argument name

Creates a duration argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Duration argument

Source
Args.scala
def enumeration[A](name: String)(cases: (String, A)*): Args[A]

Creates a enumeration argument with a custom argument name

Creates a enumeration argument with a custom argument name

Value parameters

cases

Enum cases

name

Argument name

Attributes

Returns

Enumeration argument

Source
Args.scala
def enumeration[A](cases: (String, A)*): Args[A]

Creates a enumeration argument with 'choice' as argument name

Creates a enumeration argument with 'choice' as argument name

Value parameters

cases

Enum cases

Attributes

Returns

Enumeration argument

Source
Args.scala
def instant(name: String): Args[Instant]

Creates a instant argument with a custom argument name

Creates a instant argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Instant argument

Source
Args.scala
def integer(name: String): Args[BigInt]

Creates an integer argument with a custom argument name

Creates an integer argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Integer argument

Source
Args.scala
def localDate(name: String): Args[LocalDate]

Creates a localDate argument with a custom argument name

Creates a localDate argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

LocalDate argument

Source
Args.scala
def localDateTime(name: String): Args[LocalDateTime]

Creates a localDateTime argument with a custom argument name

Creates a localDateTime argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

LocalDateTime argument

Source
Args.scala
def localTime(name: String): Args[LocalTime]

Creates a localTime argument with a custom argument name

Creates a localTime argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

LocalTime argument

Source
Args.scala
def monthDay(name: String): Args[MonthDay]

Creates a monthDay argument with a custom argument name

Creates a monthDay argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

MonthDay argument

Source
Args.scala
def offsetDateTime(name: String): Args[OffsetDateTime]

Creates a offsetDateTime argument with a custom argument name

Creates a offsetDateTime argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

OffsetDateTime argument

Source
Args.scala
def offsetTime(name: String): Args[OffsetTime]

Creates a offsetTime argument with a custom argument name

Creates a offsetTime argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

OffsetTime argument

Source
Args.scala
def period(name: String): Args[Period]

Creates a period argument with a custom argument name

Creates a period argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Period argument

Source
Args.scala
def text(name: String): Args[String]

Creates a text argument with a custom argument name

Creates a text argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Text argument

Source
Args.scala
def year(name: String): Args[Year]

Creates a year argument with a custom argument name

Creates a year argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Year argument

Source
Args.scala
def yearMonth(name: String): Args[YearMonth]

Creates a yearMonth argument with a custom argument name

Creates a yearMonth argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

YearMonth argument

Source
Args.scala
def zoneId(name: String): Args[ZoneId]

Creates a zoneId argument with a custom argument name

Creates a zoneId argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

ZoneId argument

Source
Args.scala
def zoneOffset(name: String): Args[ZoneOffset]

Creates a zoneOffset argument with a custom argument name

Creates a zoneOffset argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

ZoneOffset argument

Source
Args.scala
def zonedDateTime(name: String): Args[ZonedDateTime]

Creates a zonedDateTime argument with a custom argument name

Creates a zonedDateTime argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

ZonedDateTime argument

Source
Args.scala

Inherited methods

def directory(exists: Exists): Args[Path]

Creates a directory argument with 'directory' as argument name

Creates a directory argument with 'directory' as argument name

Value parameters

exists

Yes if path is expected to exists, No otherwise or Either is both are acceptable.

Attributes

Returns

Directory argument

Inherited from:
ArgsPlatformSpecific (hidden)
Source
ArgsPlatformSpecific.scala
def directory(name: String, exists: Exists = ...): Args[Path]

Creates a directory argument with a custom argument name

Creates a directory argument with a custom argument name

Value parameters

exists

Yes if path is expected to exists, No otherwise or Either is both are acceptable.

name

Argument name

Attributes

Returns

Directory argument

Inherited from:
ArgsPlatformSpecific (hidden)
Source
ArgsPlatformSpecific.scala
def file(exists: Exists): Args[Path]

Creates a file argument with 'file' as argument name

Creates a file argument with 'file' as argument name

Value parameters

exists

Yes if path is expected to exists, No otherwise or Either is both are acceptable.

Attributes

Returns

File argument

Inherited from:
ArgsPlatformSpecific (hidden)
Source
ArgsPlatformSpecific.scala
def file(name: String, exists: Exists = ...): Args[Path]

Creates a file argument with a custom argument name

Creates a file argument with a custom argument name

Value parameters

exists

Yes if path is expected to exists, No otherwise or Either is both are acceptable.

name

Argument name

Attributes

Returns

File argument

Inherited from:
ArgsPlatformSpecific (hidden)
Source
ArgsPlatformSpecific.scala
def path(name: String): Args[Path]

Creates a path argument with a custom argument name

Creates a path argument with a custom argument name

Value parameters

name

Argument name

Attributes

Returns

Path argument

Inherited from:
ArgsPlatformSpecific (hidden)
Source
ArgsPlatformSpecific.scala

Concrete fields

val bool: Args[Boolean]

Creates a boolean argument with boolean as argument name

Creates a boolean argument with boolean as argument name

Attributes

Source
Args.scala

Creates a decimal argument with 'decimal' as argument name

Creates a decimal argument with 'decimal' as argument name

Attributes

Source
Args.scala
val duration: Args[Duration]

Creates a duration argument with 'duration' as argument name

Creates a duration argument with 'duration' as argument name

Attributes

Source
Args.scala
val instant: Args[Instant]

Creates a instant argument with 'instant' as argument name

Creates a instant argument with 'instant' as argument name

Attributes

Source
Args.scala

Creates an integer argument with 'integer' as argument name

Creates an integer argument with 'integer' as argument name

Attributes

Source
Args.scala
val localDateTime: Args[LocalDateTime]

Creates a localDateTime argument with 'date-time' as argument name

Creates a localDateTime argument with 'date-time' as argument name

Attributes

Source
Args.scala
val localTime: Args[LocalTime]

Creates a localTime argument with 'local-time' as argument name

Creates a localTime argument with 'local-time' as argument name

Attributes

Source
Args.scala
val monthDay: Args[MonthDay]

Creates a monthDay argument with 'month-day' as argument name

Creates a monthDay argument with 'month-day' as argument name

Attributes

Source
Args.scala
val none: Args[Unit]

Creates a empty argument

Creates a empty argument

Attributes

Source
Args.scala
val offsetDateTime: Args[OffsetDateTime]

Creates a offsetDateTime argument with 'offset-date-time' as argument name

Creates a offsetDateTime argument with 'offset-date-time' as argument name

Attributes

Source
Args.scala
val offsetTime: Args[OffsetTime]

Creates a offsetTime argument with 'offset-time' as argument name

Creates a offsetTime argument with 'offset-time' as argument name

Attributes

Source
Args.scala
val period: Args[Period]

Creates a period argument with 'period' as argument name

Creates a period argument with 'period' as argument name

Attributes

Source
Args.scala
val text: Args[String]

Creates a text argument with 'text' as argument name

Creates a text argument with 'text' as argument name

Attributes

Source
Args.scala
val year: Args[Year]

Creates a year argument with 'year' as argument name

Creates a year argument with 'year' as argument name

Attributes

Source
Args.scala
val yearMonth: Args[YearMonth]

Creates a yearMonth argument with 'year-month' as argument name

Creates a yearMonth argument with 'year-month' as argument name

Attributes

Source
Args.scala
val zoneId: Args[ZoneId]

Creates a zoneId argument with 'zone-id' as argument name

Creates a zoneId argument with 'zone-id' as argument name

Attributes

Source
Args.scala
val zoneOffset: Args[ZoneOffset]

Creates a zoneOffset argument with 'zone-offset' as argument name

Creates a zoneOffset argument with 'zone-offset' as argument name

Attributes

Source
Args.scala
val zonedDateTime: Args[ZonedDateTime]

Creates a zonedDateTime argument with 'zoned-date-time' as argument name

Creates a zonedDateTime argument with 'zoned-date-time' as argument name

Attributes

Source
Args.scala

Inherited fields

val directory: Args[Path]

Creates a directory argument with 'directory' as argument name, and exists being 'Either'

Creates a directory argument with 'directory' as argument name, and exists being 'Either'

Attributes

Inherited from:
ArgsPlatformSpecific (hidden)
Source
ArgsPlatformSpecific.scala
val file: Args[Path]

Creates a file argument with 'file' as argument name, and exists being 'Either'

Creates a file argument with 'file' as argument name, and exists being 'Either'

Attributes

Inherited from:
ArgsPlatformSpecific (hidden)
Source
ArgsPlatformSpecific.scala
val path: Args[Path]

Creates a path argument with 'path' as argument name

Creates a path argument with 'path' as argument name

Attributes

Inherited from:
ArgsPlatformSpecific (hidden)
Source
ArgsPlatformSpecific.scala