Interface: Command<A>
Command interface.
Type Parameters
| Type Parameter | Default type |
|---|---|
A extends Args | Args |
Properties
| Property | Type | Description |
|---|---|---|
args? | A | Command arguments. Each argument can include a description property to describe the argument in usage. |
description? | string | Command description. It's used to describe the command in usage and it's recommended to specify. |
examples? | string | Command examples. examples of how to use the command. |
name? | string | Command name. It's used to find command line arguments to execute from sub commands, and it's recommended to specify. |
resource? | CommandResourceFetcher<A, ArgValues<A>> | Command resource fetcher. |
run? | CommandRunner<A> | Command runner. it's the command to be executed |
