gunshi / default / CommandExamplesFetcher
Type Alias: CommandExamplesFetcher()<G>
ts
type CommandExamplesFetcher<G> = (ctx) => Awaitable<string>;
Command examples fetcher.
Type Parameters
Type Parameter | Default type |
---|---|
G extends GunshiParams <any > | DefaultGunshiParams |
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Readonly <CommandContext <G >> | A command context |
Returns
Awaitable
<string
>
A fetched command examples.