WP Kernel API / @wpkernel/cli / DevCommand
Class: DevCommand
Temporary alias preserving the legacy wpk dev
entry point.
Extends
Constructors
Constructor
ts
new DevCommand(): DevCommand;
Returns
DevCommand
Inherited from
Properties
paths
ts
static paths: string[][];
Paths under which the command should be exposed.
Overrides
usage
ts
static usage: Usage;
Contains the usage information for the command. If undefined, the command will be hidden from the general listing.
Overrides
verbose
ts
verbose: boolean;
Inherited from
autoApplyPhp
ts
autoApplyPhp: boolean;
Inherited from
Methods
execute()
ts
execute(): Promise<WPKExitCode>;
Standard function that'll get executed by Cli#run
and Cli#runExit
.
Expected to return an exit code or nothing (which Clipanion will treat as if 0 had been returned).
Returns
Promise
<WPKExitCode
>