Command

zio.cli.Command
See theCommand companion object
sealed trait Command[+A]

A Command represents a command in a command-line application. Every command-line application will have at least one command: the application it Other command-line applications may support multiple commands.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Map[A, B]
class OrElse[A]
class Single[OptionsType, ArgsType]
class Subcommands[A, B]
Self type
Command[A]

Members list

Value members

Concrete methods

final def as[B](b: => B): Command[B]
final def map[B](f: A => B): Command[B]
final def orElse[A1 >: A](that: Command[A1]): Command[A1]
final def orElseEither[B](that: Command[B]): Command[Either[A, B]]
final def subcommands[B](that: Command[B])(implicit ev: Reducable[A, B]): Command[ev.Out]
final def subcommands[B](c1: Command[B], c2: Command[B], cs: Command[B]*)(implicit ev: Reducable[A, B]): Command[ev.Out]
final def withHelp(help: String): Command[A]
final def withHelp(help: HelpDoc): Command[A]
final def |[A1 >: A](that: Command[A1]): Command[A1]

Inherited methods

Attributes

Inherited from:
Parameter (hidden)

Inherited and Abstract methods

def names: Set[String]

Attributes

Inherited from:
Named (hidden)

Concrete fields

lazy val tag: String