Skip to content

runAddBindingSourceCommand

runAddBindingSourceCommand(options): Promise<{ attributeName?: string; bindingSourceSlug: string; blockSlug?: string; projectDir: string; }>

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

Add one block binding source scaffold to an official workspace project.

RunAddBindingSourceCommandOptions

Command options for the binding-source scaffold workflow.

Promise<{ attributeName?: string; bindingSourceSlug: string; blockSlug?: string; projectDir: string; }>

A promise that resolves with the normalized bindingSourceSlug and owning projectDir after the server/editor files, optional target block metadata, and inventory entry have been written successfully.

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