Command

zio.cli.Command
See theCommand companion trait
object Command

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Command.type

Members list

Type members

Classlikes

final case class Map[A, B](command: Command[A], f: A => B) extends Command[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Command[B]
class Object
trait Matchable
class Any
Show all
final case class OrElse[A](left: Command[A], right: Command[A]) extends Command[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Command[A]
class Object
trait Matchable
class Any
Show all
final case class Single[OptionsType, ArgsType](name: String, help: HelpDoc, options: Options[OptionsType], args: Args[ArgsType]) extends Command[(OptionsType, ArgsType)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Command[(OptionsType, ArgsType)]
class Object
trait Matchable
class Any
Show all
Self type
Single[OptionsType, ArgsType]
final case class Subcommands[A, B](parent: Command[A], child: Command[B]) extends Command[(A, B)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Command[(A, B)]
class Object
trait Matchable
class Any
Show all
Self type
Subcommands[A, B]

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[OptionsType, ArgsType](name: String, options: Options[OptionsType], args: Args[ArgsType])(implicit ev: Reducable[OptionsType, ArgsType]): Command[ev.Out]

Construct a new command.

Construct a new command.

Attributes

def apply[OptionsType](name: String, options: Options[OptionsType])(implicit ev: Reducable[OptionsType, Unit]): Command[ev.Out]
def apply[ArgsType](name: String, args: Args[ArgsType])(implicit ev: Reducable[Unit, ArgsType]): Command[ev.Out]
def apply(name: String)(implicit ev: Reducable[Unit, Unit]): Command[ev.Out]