Subcommands

zio.cli.Command.Subcommands
final case class Subcommands[A, B](parent: Command[A], child: Command[B]) extends Command[(A, B)]

Attributes

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

Members list

Value members

Concrete methods

def parse(args: List[String], conf: CliConfig): IO[ValidationError, CommandDirective[(A, B)]]
def pipeline: (String, List[Parameter])

Inherited methods

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Command

Attributes

Inherited from:
Product

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Command

Concrete fields

lazy val helpDoc: HelpDoc
lazy val names: Set[String]
lazy override val shortDesc: String

Inherited fields

lazy val tag: String

Attributes

Inherited from:
Command