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.
Parameters
Section titled “Parameters”options
Section titled “options”RunAddBindingSourceCommandOptions
Command options for the binding-source scaffold workflow.
Returns
Section titled “Returns”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.
Throws
Section titled “Throws”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.