Skip to content

Commit b7ea2ca

Browse files
authored
Merge pull request #4854 from wojsmol/add-core-template2phar
add template for core-command to phar
2 parents b13d1d7 + cd8ee82 commit b7ea2ca

3 files changed

Lines changed: 38 additions & 15 deletions

File tree

‎composer.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
"wp-cli/cache-command": "^1.0",
4343
"wp-cli/checksum-command": "^1.0",
4444
"wp-cli/config-command": "^1.0",
45-
"wp-cli/core-command": "^1.0",
45+
"wp-cli/core-command": "^1.0.11",
4646
"wp-cli/cron-command": "^1.0",
4747
"wp-cli/db-command": "^1.0",
4848
"wp-cli/embed-command": "^1.0",
4949
"wp-cli/entity-command": "^1.0",
5050
"wp-cli/eval-command": "^1.0",
5151
"wp-cli/export-command": "^1.0",
52-
"wp-cli/extension-command": "^1.0",
52+
"wp-cli/extension-command": "^1.2.1",
5353
"wp-cli/import-command": "^1.0",
5454
"wp-cli/language-command": "^1.0",
5555
"wp-cli/media-command": "^1.0",

‎composer.lock‎

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎utils/make-phar.php‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,28 @@ function get_composer_versions( $current_version ) {
273273
foreach ( $finder as $file ) {
274274
add_file( $phar, $file );
275275
}
276+
277+
$finder = new Finder();
278+
$finder
279+
->files()
280+
->ignoreVCS(true)
281+
->ignoreDotFiles(false)
282+
->in( WP_CLI_VENDOR_DIR . '/wp-cli/extension-command/templates')
283+
;
284+
foreach ( $finder as $file ) {
285+
add_file( $phar, $file );
286+
}
287+
288+
$finder = new Finder();
289+
$finder
290+
->files()
291+
->ignoreVCS(true)
292+
->ignoreDotFiles(false)
293+
->in( WP_CLI_VENDOR_DIR . '/wp-cli/core-command/templates')
294+
;
295+
foreach ( $finder as $file ) {
296+
add_file( $phar, $file );
297+
}
276298
}
277299

278300
add_file( $phar, WP_CLI_VENDOR_DIR . '/autoload.php' );

0 commit comments

Comments
 (0)