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