Skip to content

Commit d502cb7

Browse files
committed
Improve maintenance tools
1 parent e5345c0 commit d502cb7

11 files changed

+759
-223
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
"dev-master": "2.0.x-dev"
5555
}
5656
},
57+
"autoload-dev": {
58+
"psr-4": {
59+
"WP_CLI\\Maintenance\\": "utils/maintenance"
60+
}
61+
},
5762
"minimum-stability": "dev",
5863
"prefer-stable": true,
5964
"scripts": {

composer.lock

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

utils/contrib-list.php

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

utils/maintenance-bootstrap.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
$autoloader = dirname( __DIR__ ) . '/vendor/autoload.php';
4+
require_once $autoloader;
5+
6+
WP_CLI::add_command( 'contrib-list', 'WP_CLI\Maintenance\Contrib_list_Command' );
7+
WP_CLI::add_command( 'milestones-after', 'WP_CLI\Maintenance\Milestones_After_Command' );
8+
WP_CLI::add_command( 'milestones-since', 'WP_CLI\Maintenance\Milestones_Since_Command' );
9+
WP_CLI::add_command( 'release-date', 'WP_CLI\Maintenance\Release_Date_Command' );
10+
WP_CLI::add_command( 'release-notes', 'WP_CLI\Maintenance\Release_Notes_Command' );

0 commit comments

Comments
 (0)