vertx / io.vertx.core.cli.annotations / CLIConfigurator

CLIConfigurator

open class CLIConfigurator

Class responsible for defining CLI using annotations and injecting values extracted by the parser.

Author
Clement Escoffier

Constructors

<init>

CLIConfigurator()

Class responsible for defining CLI using annotations and injecting values extracted by the parser.

Functions

define

open static fun define(clazz: Class<*>): CLI

Creates an instance of the given class, and extracts the metadata from the given class.

inject

open static fun inject(cli: CommandLine, object: Any): Unit

Injects the value in the annotated setter methods (Option and Argument.