runAddBlockTransformCommand
runAddBlockTransformCommand(
options):Promise<{blockSlug:string;fromBlockName:string;projectDir:string;toBlockName:string;transformSlug:string; }>
Defined in: wp-typia-project-tools/src/runtime/cli-add-workspace.ts:1018
Add one block-to-block transform registration to an existing workspace block.
Parameters
Section titled “Parameters”options
Section titled “options”RunAddBlockTransformCommandOptions
Command options for the block transform scaffold workflow.
Returns
Section titled “Returns”Promise<{ blockSlug: string; fromBlockName: string; projectDir: string; toBlockName: string; transformSlug: string; }>
A promise that resolves with the normalized target blockSlug,
resolved fromBlockName, resolved toBlockName, transformSlug, and owning
projectDir after the transform module, transform 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 --from is not a full block name, when
--to uses a non-workspace namespace, when the target block entrypoint does
not expose registration.settings, when the transform slug is invalid, or
when a conflicting file or inventory entry already exists.