← ZIO Cli docs

CliApp

zio.cli.CliApp
See theCliApp companion object
sealed trait CliApp[-R, +E, +A]

A CliApp[R, E] is a complete description of a command-line application, which requires environment R, and may fail with a value of type E.

Attributes

Companion
object
Source
CliApp.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CliApp[R, E, A]

Members list

Value members

Abstract methods

def config(newConfig: CliConfig): CliApp[R, E, A]

Attributes

Source
CliApp.scala
def flatMap[R1 <: R, E1 >: E, B](f: A => ZIO[R1, E1, B]): CliApp[R1, E1, B]

Attributes

Source
CliApp.scala
def run(args: List[String]): ZIO[R, CliError[E], Option[A]]

Attributes

Source
CliApp.scala
def summary(s: Span): CliApp[R, E, A]

Attributes

Source
CliApp.scala

Concrete methods

final def map[B](f: A => B): CliApp[R, E, B]

Attributes

Source
CliApp.scala