commands.php 611 Bytes
Newer Older
cyrille's avatar
cyrille committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<?php
/**
 * Load LifterLMS CLI classes
 *
 * @package LifterLMS/CLI
 *
 * @since 0.0.1
 * @version 0.0.1
 */

namespace LifterLMS\CLI;

use WP_CLI;
use LifterLMS\CLI\Commands\Restful\Runner;

/**
 * Root Command
 *
 * @since 0.0.1
 */
WP_CLI::add_command( 'llms', 'LifterLMS\CLI\Commands\Root' );

/**
 * Add-on Command
 *
 * @since 0.0.1
 */
WP_CLI::add_command( 'llms addon', 'LifterLMS\CLI\Commands\AddOn\Main' );

/**
 * License Command
 *
 * @since 0.0.1
 */
WP_CLI::add_command( 'llms license', 'LifterLMS\CLI\Commands\License' );

/**
 * Restful Commands
 *
 * @since 0.0.1
 */
Runner::after_wp_load();