Skip to content

gunshi / default / CommandRunner

Type Alias: CommandRunner()<G>

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

Command runner.

Type Parameters

Type ParameterDefault type
G extends GunshiParams<any>DefaultGunshiParams

Parameters

ParameterTypeDescription
ctxReadonly<CommandContext<G>>A command context

Returns

Awaitable<void | string>

void or string (for CLI output)

Released under the MIT License.