OrElse

zio.cli.Command.OrElse
final case class OrElse[A](left: Command[A], right: Command[A]) extends Command[A]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Command[A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Inherited methods

final def as[B](b: => B): Command[B]

Attributes

Inherited from:
Command
def getSubparameters: Map[String, (String, Parameter)]

Attributes

Inherited from:
Alternatives (hidden)
final def map[B](f: A => B): Command[B]

Attributes

Inherited from:
Command
final def orElse[A1 >: A](that: Command[A1]): Command[A1]

Attributes

Inherited from:
Command
final def orElseEither[B](that: Command[B]): Command[Either[A, B]]

Attributes

Inherited from:
Command

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Parameter (hidden)
final def subcommands[B](c1: Command[B], c2: Command[B], cs: Command[B]*)(implicit ev: Reducable[A, B]): Command[ev.Out]

Attributes

Inherited from:
Command
final def subcommands[B](that: Command[B])(implicit ev: Reducable[A, B]): Command[ev.Out]

Attributes

Inherited from:
Command
final def withHelp(help: HelpDoc): Command[A]

Attributes

Inherited from:
Command
final def withHelp(help: String): Command[A]

Attributes

Inherited from:
Command
final def |[A1 >: A](that: Command[A1]): Command[A1]

Attributes

Inherited from:
Command

Concrete fields

override val alternatives: List[Parameter]
lazy val helpDoc: HelpDoc
lazy val names: Set[String]

Inherited fields

lazy val tag: String

Attributes

Inherited from:
Command