Commit 9ed72e95 authored by Erick Hitter's avatar Erick Hitter

Ensure the plugin's namespace gets a proper representation in `wp` and `wp help`

Necessary since we nest many commands under one namespace
parent 8d8aea49
......@@ -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