Skip to content

runAddPatternCommand

runAddPatternCommand(options): Promise<{ patternSlug: string; projectDir: string; }>

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

Add one PHP block pattern shell to an official workspace project.

RunAddPatternCommandOptions

Command options for the pattern scaffold workflow.

Promise<{ patternSlug: string; projectDir: string; }>

A promise that resolves with the normalized patternSlug and owning projectDir after the pattern file and inventory entry have been written successfully.

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