Skip to content

craft-hub / CommandCapability

Interface: CommandCapability

Defined in: packages/craft-hub/src/types.ts:424

Executable command capability.

Properties

availability?

optional availability?: CommandAvailability

Defined in: packages/craft-hub/src/types.ts:442


category?

optional category?: CommandCategory

Defined in: packages/craft-hub/src/types.ts:435

Built-in commands are categorized; third-party providers may omit this for compatibility.


description?

optional description?: string

Defined in: packages/craft-hub/src/types.ts:428


id

id: string

Defined in: packages/craft-hub/src/types.ts:425


inputArgSeparator?

optional inputArgSeparator?: "--"

Defined in: packages/craft-hub/src/types.ts:441

Separator inserted before resolved inputs for package-manager script invocations.


inputs?

optional inputs?: CommandInputDefinition[]

Defined in: packages/craft-hub/src/types.ts:439


invocation

invocation: CommandInvocation

Defined in: packages/craft-hub/src/types.ts:438


kind

kind: "command"

Defined in: packages/craft-hub/src/types.ts:426


name

name: string

Defined in: packages/craft-hub/src/types.ts:427


operation?

optional operation?: ReleaseOperation

Defined in: packages/craft-hub/src/types.ts:443


package?

optional package?: CommandPackage

Defined in: packages/craft-hub/src/types.ts:437

Built-in commands declare their package boundary; third-party providers may omit it.


source

source: string

Defined in: packages/craft-hub/src/types.ts:429


sourceLine?

optional sourceLine?: number

Defined in: packages/craft-hub/src/types.ts:433

One-based line where this command is declared, when known.


sourcePath?

optional sourcePath?: string

Defined in: packages/craft-hub/src/types.ts:431

Absolute path to the file that declared this command, when known.

Released under the MIT License.