Skip to content

basalt / prisma/src / CommandDefinition

Interface: CommandDefinition ​

Defined in: prisma/src/command.ts:35

Shape consumed by the CLI's commandsPlugin / 'commands' metadata bucket.

Properties ​

description? ​

> optional description?: string

Defined in: prisma/src/command.ts:38


name ​

> name: string

Defined in: prisma/src/command.ts:37

Command name, by convention noun:verb (e.g. tenant:migrate).

Methods ​

handle() ​

> handle(context): number | void | Promise<number | void>

Defined in: prisma/src/command.ts:39

Parameters ​

context ​

CommandContext

Returns ​

number | void | Promise<number | void>

Released under the MIT License.