Skip to content

runAddBlockStyleCommand

runAddBlockStyleCommand(options): Promise<{ blockSlug: string; projectDir: string; styleSlug: string; }>

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

Add one Block Styles registration to an existing workspace block.

RunAddBlockStyleCommandOptions

Command options for the Block Styles scaffold workflow.

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

A promise that resolves with the normalized blockSlug, styleSlug, and owning projectDir after the style module, style registry, entrypoint hook, and inventory entry have been written successfully.

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