Verified Commit 40bde347 authored by Erick Hitter's avatar Erick Hitter
Browse files

Starting point for CLI commands to deal with the REST API

parent 6d9cbe0f
......@@ -39,3 +39,4 @@ require __DIR__ . '/wp-cli/class-cache.php';
require __DIR__ . '/wp-cli/class-events.php';
require __DIR__ . '/wp-cli/class-lock.php';
require __DIR__ . '/wp-cli/class-one-time-fixers.php';
require __DIR__ . '/wp-cli/class-rest-api.php';
<?php
namespace Automattic\WP\Cron_Control\CLI;
/**
* Make requests to Cron Control's REST API
*/
class REST_API extends \WP_CLI_Command {
/**
* Retrieve the current event queue
*
* @subcommand get-queue
*/
public function get_queue( $args, $assoc_args ) {
\WP_CLI::warning( 'Queue goes here :P' );
}
}
\WP_CLI::add_command( 'cron-control rest-api', 'Automattic\WP\Cron_Control\CLI\REST_API' );
Supports Markdown
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