gunshi / default / CommandExamplesFetcher
Type Alias: CommandExamplesFetcher()<A, V>
ts
type CommandExamplesFetcher<A, V> = (ctx) => Promise<string>;Command examples fetcher.
Type Parameters
| Type Parameter | Default type |
|---|---|
A extends Args | Args |
V | ArgValues<A> |
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | Readonly<CommandContext<A, V>> | A command context |
Returns
Promise<string>
A fetched command examples.
