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