Skip to content

Commit 6b433f7

Browse files
authored
Merge pull request #4854 from wojsmol/add-core-template2phar
add template for core-command to phar
2 parents c988a2c + d19f313 commit 6b433f7

File tree

6 files changed

+38
-30
lines changed

6 files changed

+38
-30
lines changed

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.

templates/plugin-status.mustache

Lines changed: 0 additions & 6 deletions
This file was deleted.

templates/theme-status.mustache

Lines changed: 0 additions & 5 deletions
This file was deleted.

templates/versions.mustache

Lines changed: 0 additions & 4 deletions
This file was deleted.

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)