Skip to content

Commit 6acf5c7

Browse files
authored
Merge pull request #6 from wp-cli/fix-missing-extension-templates
Add template files across all commands using wildcards
2 parents bef892c + b23d530 commit 6acf5c7

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

utils/make-phar.php

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ function get_composer_versions( $current_version ) {
226226
->ignoreVCS(true)
227227
->ignoreDotFiles(false)
228228
->in( WP_CLI_ROOT . '/templates')
229+
->in( WP_CLI_VENDOR_DIR . '/wp-cli/*-command/templates' )
229230
;
230231

231232
foreach ( $finder as $file ) {
@@ -253,28 +254,6 @@ function get_composer_versions( $current_version ) {
253254
add_file( $phar, $file );
254255
}
255256
}
256-
257-
$finder = new Finder();
258-
$finder
259-
->files()
260-
->ignoreVCS(true)
261-
->ignoreDotFiles(false)
262-
->in( WP_CLI_VENDOR_DIR . '/wp-cli/config-command/templates')
263-
;
264-
foreach ( $finder as $file ) {
265-
add_file( $phar, $file );
266-
}
267-
268-
$finder = new Finder();
269-
$finder
270-
->files()
271-
->ignoreVCS(true)
272-
->ignoreDotFiles(false)
273-
->in( WP_CLI_VENDOR_DIR . '/wp-cli/scaffold-command/templates')
274-
;
275-
foreach ( $finder as $file ) {
276-
add_file( $phar, $file );
277-
}
278257
}
279258

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

0 commit comments

Comments
 (0)