WP_CLI\Dispatcher

CompositeCommand::get_subcommandspublicWP-CLI 1.0

Get the subcommands contained by this composite command.

Method of the class: CompositeCommand{}

No Hooks.

Returns

Array.

Usage

$CompositeCommand = new CompositeCommand();
$CompositeCommand->get_subcommands();

CompositeCommand::get_subcommands() code WP-CLI 2.13.0-alpha

public function get_subcommands() {
	ksort( $this->subcommands );

	return $this->subcommands;
}