Commit f98f15fa authored by Josh Betz's avatar Josh Betz Committed by GitHub

Merge pull request #146 from Automattic/add/cli-top-level

Ensure the plugin's CLI namespace gets a proper top-level representation
parents 9022943f 9ed72e95
......@@ -72,6 +72,7 @@ function stop_the_insanity() {
/**
* Load commands
*/
require __DIR__ . '/wp-cli/class-main.php';
require __DIR__ . '/wp-cli/class-cache.php';
require __DIR__ . '/wp-cli/class-events.php';
require __DIR__ . '/wp-cli/class-lock.php';
......
<?php
/**
* Top-level CLI command
*
* Mostly exists for WP-CLI to provide better documentation
*
* @package a8c_Cron_Control
*/
namespace Automattic\WP\Cron_Control\CLI;
use WP_CLI;
/**
* Manage Cron Control, including its data store, caches, and locks
*/
class Main extends \WP_CLI_Command {}
WP_CLI::add_command( 'cron-control', 'Automattic\WP\Cron_Control\CLI\Main' );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment