| 1 |
<?php |
| 2 |
/** |
| 3 |
* Base CLI Command. |
| 4 |
* |
| 5 |
* @package Activitypub |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace Activitypub\Cli; |
| 9 |
|
| 10 |
/** |
| 11 |
* Manage ActivityPub plugin functionality and federation. |
| 12 |
* |
| 13 |
* @package Activitypub |
| 14 |
*/ |
| 15 |
class Command extends \WP_CLI_Command { |
| 16 |
|
| 17 |
/** |
| 18 |
* Display the ActivityPub plugin version. |
| 19 |
* |
| 20 |
* ## EXAMPLES |
| 21 |
* |
| 22 |
* $ wp activitypub version |
| 23 |
* ActivityPub 7.9.0 |
| 24 |
* |
| 25 |
* @subcommand version |
| 26 |
* |
| 27 |
* @param array $args The positional arguments (unused). |
| 28 |
* @param array $assoc_args The associative arguments (unused). |
| 29 |
*/ |
| 30 |
public function version( $args, $assoc_args ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 31 |
\WP_CLI::line( 'ActivityPub ' . ACTIVITYPUB_PLUGIN_VERSION ); |
| 32 |
} |
| 33 |
} |
| 34 |
|