@wpkernel/cli / BuildDoctorCommandOptions
Interface: BuildDoctorCommandOptions
Options for building the doctor command, allowing for dependency injection.
Properties
buildReadinessRegistry()?
readonly optional buildReadinessRegistry: (options) => ReadinessRegistry;Optional: Custom readiness registry builder.
Parameters
options
BuildDefaultReadinessRegistryOptions = {}
Returns
buildReporter()?
readonly optional buildReporter: (options) => Reporter;Optional: Custom reporter builder function.
Parameters
options
ReporterOptions = {}
Returns
Reporter
buildWorkspace()?
readonly optional buildWorkspace: (root) => Workspace;Optional: Custom workspace builder function.
Parameters
root
string = ...
Returns
loadWPKernelConfig()?
readonly optional loadWPKernelConfig: (options?) => Promise<LoadedWPKernelConfig>;Optional: Custom function to load the WPKernel configuration.
Locate and load the project's wpk configuration.
The function searches for supported config files, executes them via cosmiconfig loaders, validates the resulting structure, and returns the canonicalised configuration metadata.
Parameters
options?
cwd?
string
Returns
Promise<LoadedWPKernelConfig>
The validated wpk config and associated metadata.
Throws
WPKernelError when discovery, parsing or validation fails.
