Skip to content

Commit 211bdd3

Browse files
committed
Disable command list check
1 parent feb6243 commit 211bdd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ScaffoldPackageCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ public function package( $args, $assoc_args ) {
125125
WP_CLI::success( "Created package files in {$package_dir}" );
126126
}
127127

128-
Process::create( 'composer install' )->run();
129-
130128
$force_flag = $force ? '--force' : '';
131129
if ( ! Utils\get_flag_value( $assoc_args, 'skip-tests' ) ) {
132130
WP_CLI::runcommand( "scaffold package-tests {$package_dir} {$force_flag}", array( 'launch' => false ) );
@@ -291,9 +289,12 @@ public function package_readme( $args, $assoc_args ) {
291289
}
292290
} while( $parent_command && $bits );
293291

292+
/* This check doesn't work because of the way the commands are fetched.
293+
* Needs bigger refactor to put this check back in.
294294
if ( empty( $parent_command ) ) {
295295
WP_CLI::error( 'Missing one or more commands defined in composer.json -> extra -> commands.' );
296296
}
297+
*/
297298

298299
$longdesc = preg_replace( '/## GLOBAL PARAMETERS(.+)/s', '', $parent_command['longdesc'] );
299300
$longdesc = preg_replace( '/##\s(.+)/', '**$1**', $longdesc );

0 commit comments

Comments
 (0)