Module cli

Source
Expand description

Tools for composing CLI options.

The main thing in this module is Opts, which compose all the strongly typed CLI options from Parser, Runner and Writer, and provide filtering based on Regex or tag expressions.

The idea behind this is that Parser, Runner and/or Writer may want to introduce their own CLI options to allow tweaking themselves, but we still do want them combine in a single CLI and avoid any boilerplate burden.

If the implementation doesn’t need any CLI options, it may just use the prepared cli::Empty stub.

Structs§

Compose
Composes two clap::Args derivers together.
Empty
Empty CLI options.
Opts
Root CLI (command line interface) of a top-level Cucumber executor.

Traits§

Args
Parse a set of arguments into a user-defined container.
Colored
Indication whether a Writer using CLI options supports colored output.
Parser
Parse command-line arguments into Self.

Derive Macros§

Args
Generates the Args impl.
Parser
Generates the Parser implementation.