Interface: CliOptions<G>
CLI options of cli
function.
Type Parameters
Type Parameter | Default type |
---|---|
G extends GunshiParams <any > | DefaultGunshiParams |
Properties
Property | Type | Description |
---|---|---|
cwd? | string | Current working directory. |
description? | string | Command program description. |
leftMargin? | number | Left margin of the command output. |
locale? | string | Locale | Command program locale. |
middleMargin? | number | Middle margin of the command output. |
name? | string | Command program name. |
renderHeader? | null | (ctx ) => Promise <string > | Render function the header section in the command usage. |
renderUsage? | null | (ctx ) => Promise <string > | Render function the command usage. |
renderValidationErrors? | null | (ctx , error ) => Promise <string > | Render function the validation errors. |
subCommands? | Map <string , | Command <any > | LazyCommand <any >> | Sub commands. |
translationAdapterFactory? | TranslationAdapterFactory | Translation adapter factory. |
usageOptionType? | boolean | Whether to display the usage optional argument type. |
usageOptionValue? | boolean | Whether to display the optional argument value. |
usageSilent? | boolean | Whether to display the command usage. |
version? | string | Command program version. |