# spinupwp/1.3/src/Cli.php

SpinupWP, version 1.3. 24 lines.

- Page: https://pluginprobe.com/plugins/spinupwp/1.3/code/src/Cli.php
- Raw: https://pluginprobe.com/plugins/spinupwp/1.3/raw/src/Cli.php
- Modified: 2019-07-15T15:01:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/spinupwp/1.3/code/src/Cli.php#L10-L20`.

```php
<?php

namespace DeliciousBrains\SpinupWp;

use WP_CLI;

class Cli {

	/**
	 * Register a CLI command.
	 *
	 * @param string $command
	 * @param string $callable
	 *
	 * @return bool
	 */
	public function register_command( $command, $callable ) {
		if ( ! defined( 'WP_CLI' ) || ! WP_CLI ) {
			return false;
		}

		return WP_CLI::add_command( $command, $callable );
	}
}
```
