2016-07-25 07:36:55 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if ( class_exists( 'WP_CLI' ) ) {
|
2016-08-26 06:13:19 -07:00
|
|
|
require_once dirname( __FILE__ ) . '/inc/class-command.php';
|
2016-08-26 06:39:30 -07:00
|
|
|
require_once dirname( __FILE__ ) . '/inc/class-formatter.php';
|
2016-08-26 07:42:05 -07:00
|
|
|
require_once dirname( __FILE__ ) . '/inc/class-logger.php';
|
2016-10-07 16:02:26 -07:00
|
|
|
WP_CLI::add_command( 'profile stage', array( 'runcommand\Profile\Command', 'stage' ) );
|
|
|
|
WP_CLI::add_command( 'profile hook', array( 'runcommand\Profile\Command', 'hook' ) );
|
|
|
|
WP_CLI::add_command( 'profile eval', array( 'runcommand\Profile\Command', 'eval_' ) );
|
|
|
|
WP_CLI::add_command( 'profile eval-file', array( 'runcommand\Profile\Command', 'eval_file' ) );
|
2016-07-25 07:36:55 -07:00
|
|
|
}
|