Skip to content

runAddAdminViewCommand

runAddAdminViewCommand(options): Promise<{ adminViewSlug: string; projectDir: string; source?: string; }>

Defined in: wp-typia-project-tools/src/runtime/cli-add-workspace-admin-view.ts:1009

Add one DataViews-powered WordPress admin screen scaffold to an official workspace project.

RunAddAdminViewCommandOptions

Command options for the admin-view scaffold workflow.

Promise<{ adminViewSlug: string; projectDir: string; source?: string; }>

A promise that resolves with the normalized adminViewSlug, optional source, and owning projectDir after scaffold files and inventory entries are written successfully.

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