Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
f98f15fa
Commit
f98f15fa
authored
Oct 10, 2017
by
Josh Betz
Committed by
GitHub
Oct 10, 2017
Browse files
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/wp-cli.php
View file @
f98f15fa
...
...
@@ -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'
;
...
...
includes/wp-cli/class-main.php
0 → 100644
View file @
f98f15fa
<?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'
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment