Skip to content

gunshi / default / CommandRunner

Type Alias: CommandRunner()<G> ​

ts
type CommandRunner<G> = (ctx) => Awaitable<string | void>;

Command runner.

Type Parameters ​

Type ParameterDefault type
G extends GunshiParamsConstraintDefaultGunshiParams

Parameters ​

ParameterTypeDescription
ctxReadonly<CommandContext<G>>A command context

Returns ​

Awaitable<string | void>

void or string (for CLI output)

Released under the MIT License.