CLI_Manager
CLI Manager class for registering WP-CLI commands.
Namespace: WebberZone\Better_Search\Pro\CLI
Since: 4.3.0
Source: includes/pro/cli/class-cli-manager.php line 23
Methods
__construct()
Constructor.
Since: 4.3.0
Line: 47
public function __construct( Operations $ai_operations );
| Type | Name | Description |
|---|---|---|
Operations |
$ai_operations |
AI operations. |
register_commands()
Register all WP-CLI commands.
Since: 4.3.0
Line: 69
public function register_commands( ): void;
Returns: void
get_command()
Get command instance by name.
Since: 4.3.0
Line: 83
public function get_command( string $command_name ): ?Base_Command;
| Type | Name | Description |
|---|---|---|
string |
$command_name |
Command name. |
Returns: ?Base_Command — Command instance or null if not found.
get_commands()
Get all registered commands.
Since: 4.3.0
Line: 94
public function get_commands( ): array;
Returns: array — Array of command instances.