runAddCoreVariationCommand
runAddCoreVariationCommand(
options):Promise<{projectDir:string;targetBlockName:string;variationFile:string;variationSlug:string; }>
Defined in: wp-typia-project-tools/src/runtime/cli-add-workspace-core-variation.ts:406
Add one editor-side variation registration for an existing core or external block.
Parameters
Section titled “Parameters”options
Section titled “options”RunAddCoreVariationCommandOptions
Command options for the core-variation scaffold workflow.
Returns
Section titled “Returns”Promise<{ projectDir: string; targetBlockName: string; variationFile: string; variationSlug: string; }>
The normalized variation metadata and owning workspace directory.
Throws
Section titled “Throws”When the command is run outside an official workspace, the
target block name is not full namespace/block form, or the generated file
already exists.