Interface: Command<G>
Command interface.
Type Parameters
Type Parameter | Default type |
---|---|
G extends GunshiParams <any > | DefaultGunshiParams |
Properties
Property | Type | Description |
---|---|---|
args? | G ["args" ] | 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 | CommandExamplesFetcher <G > | 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 <G > | Command resource fetcher. |
run? | CommandRunner <G > | Command runner. it's the command to be executed |
toKebab? | boolean | Whether to convert the camel-case style argument name to kebab-case. If you will set to true , All Command.args names will be converted to kebab-case. |