\WP_CLI::error(sprintf(__('Failed to locate event %d. Please confirm that the entry exists and that the ID is that of an event.','automattic-cron-control'),$args[0]));
\WP_CLI::error(__('Failed to locate event. Please confirm that the entry exists.','automattic-cron-control'));
}
\WP_CLI::log(sprintf(__('Found event %1$d with action `%2$s` and instance identifier `%3$s`','automattic-cron-control'),$args[0],$event->action,$event->instance));
...
...
@@ -125,7 +140,9 @@ class Events extends \WP_CLI_Command {
\WP_CLI::warning(sprintf(__('This event is not scheduled to run until %1$s GMT (%2$s)','automattic-cron-control'),date(TIME_FORMAT,$event->timestamp),$this->calculate_interval($event->timestamp-$now)));
}
\WP_CLI::confirm(sprintf(__('Run this event?','automattic-cron-control')));