From f0fa8b19d969f036d3dd7bcf1dcebe4a9dc67b02 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Thu, 7 Sep 2017 14:57:33 -0700
Subject: [PATCH] More scaffolding

---
 includes/run.php            | 17 +++++++++++++++++
 includes/schedule.php       |  4 ++++
 wp-cli-via-cron-control.php |  9 ++++++++-
 3 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 includes/run.php
 create mode 100644 includes/schedule.php

diff --git a/includes/run.php b/includes/run.php
new file mode 100644
index 0000000..28b4476
--- /dev/null
+++ b/includes/run.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Automattic\WP\WP_CLI_Cron_Control_Offload;
+
+if ( ! defined( 'WP_CLI' ) || ! \WP_CLI ) {
+	return;
+}
+
+use WP_CLI;
+
+/**
+ *
+ */
+function run_event( $args ) {
+	return false;
+}
+add_action( ACTION, __NAMESPACE__ . '\run_event' );
diff --git a/includes/schedule.php b/includes/schedule.php
new file mode 100644
index 0000000..8e2291d
--- /dev/null
+++ b/includes/schedule.php
@@ -0,0 +1,4 @@
+<?php
+
+namespace Automattic\WP\WP_CLI_Cron_Control_Offload;
+
diff --git a/wp-cli-via-cron-control.php b/wp-cli-via-cron-control.php
index 7f9846c..649e861 100644
--- a/wp-cli-via-cron-control.php
+++ b/wp-cli-via-cron-control.php
@@ -9,5 +9,12 @@
  * Domain Path:     /languages
  * Version:         0.1.0
  *
- * @package         WP_CLI_via_Cron_Control
+ * @package         WP_CLI_Cron_Control_Offload
  */
+
+namespace Automattic\WP\WP_CLI_Cron_Control_Offload;
+
+const ACTION = 'wp_cli_cron_control_offload';
+
+require_once __DIR__ . '/includes/schedule.php';
+require_once __DIR__ . '/includes/run.php';
-- 
GitLab