Skip to main content

Interface: Command<CONTEXT>

Parsed and validated command instance.

Extends

  • DocumentedTarget

Type Parameters

CONTEXT extends CommandContext

Properties

brief

readonly brief: string

Inherited from

DocumentedTarget.brief

Defined in

packages/core/src/routing/types.ts:19


formatHelp()

readonly formatHelp: (args) => string

Parameters

args: HelpFormattingArguments

Returns

string

Inherited from

DocumentedTarget.formatHelp

Defined in

packages/core/src/routing/types.ts:21


formatUsageLine()

readonly formatUsageLine: (args) => string

Parameters

args: UsageFormattingArguments

Returns

string

Inherited from

DocumentedTarget.formatUsageLine

Defined in

packages/core/src/routing/types.ts:20


kind

readonly kind: typeof CommandSymbol

Defined in

packages/core/src/routing/command/types.ts:47


loader

readonly loader: CommandFunctionLoader<Readonly<Record<string, unknown>>, BaseArgs, CONTEXT>

Defined in

packages/core/src/routing/command/types.ts:48


parameters

readonly parameters: CommandParameters

Defined in

packages/core/src/routing/command/types.ts:49


usesFlag()

readonly usesFlag: (flagName) => boolean

Parameters

flagName: string

Returns

boolean

Defined in

packages/core/src/routing/command/types.ts:50