Skip to content

runAddVariationCommand

runAddVariationCommand(options): Promise<{ blockSlug: string; projectDir: string; variationSlug: string; }>

Defined in: wp-typia-project-tools/src/runtime/cli-add-workspace.ts:850

Add one variation entry to an existing workspace block.

RunAddVariationCommandOptions

Command options for the variation scaffold workflow.

Promise<{ blockSlug: string; projectDir: string; variationSlug: string; }>

A promise that resolves with the normalized blockSlug, variationSlug, and owning projectDir after the variation files and inventory entry have been written successfully.

When the command is run outside an official workspace, when the target block is unknown, when the variation slug is invalid, or when a conflicting file or inventory entry already exists.