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.
Parameters
Section titled “Parameters”options
Section titled “options”RunAddVariationCommandOptions
Command options for the variation scaffold workflow.
Returns
Section titled “Returns”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.
Throws
Section titled “Throws”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.