src/mako/reactor/Reactor.php
protected function displayCommandHelp(string $command): int
	{
		$commandInstance = $this->instantiateCommandWithoutConstructor($this->commands[$command]);

		$this->output->writeLn('<yellow>Command:</yellow>');

		$this->output->write(PHP_EOL);

		$this->output->writeLn('php reactor ' . $command);

		$this->output->write(PHP_EOL);

		$this->output->writeLn('<yellow>Description:</yellow>');

		$this->output->write(PHP_EOL);

		$this->output->writeLn($commandInstance->getCommandDescription());

		if(!empty($arguments = $commandInstance->getCommandArguments()))
		{
			$this->drawTable('Arguments:', ['Name', 'Description', 'Optional'], $this->convertArgumentsAndOptionsArrayToRows($arguments));
		}

		if(!empty($options = $commandInstance->getCommandOptions()))
		{
			$this->drawTable('Options:', ['Name', 'Description', 'Optional'], $this->convertArgumentsAndOptionsArrayToRows($options));
		}

		return CommandInterface::STATUS_SUCCESS;
	}
protected function displayCommandHelp(string $command): int
	{
		$commandInstance = $this->instantiateCommandWithoutConstructor($this->commands[$command]);

		$this->output->writeLn('<yellow>Command:</yellow>');

		$this->output->write(PHP_EOL);

		$this->output->writeLn('php reactor ' . $command);

		$this->output->write(PHP_EOL);

		$this->output->writeLn('<yellow>Description:</yellow>');

		$this->output->write(PHP_EOL);

		$this->output->writeLn($commandInstance->getCommandDescription());

		if(!empty($arguments = $commandInstance->getCommandArguments()))
		{
			$this->drawTable('Arguments:', ['Name', 'Description', 'Optional'], $this->convertArgumentsAndOptionsArrayToRows($arguments));
		}

		if(!empty($options = $commandInstance->getCommandOptions()))
		{
			$this->drawTable('Options:', ['Name', 'Description', 'Optional'], $this->convertArgumentsAndOptionsArrayToRows($options));
		}

		return CommandInterface::STATUS_SUCCESS;
	}
protected function displayCommandHelp ( string $ command ) : int { $ commandInstance = $ this -> instantiateCommandWithoutConstructor ( $ this -> commands [ $ command ] ) ; $ this -> output -> writeLn ( '<yellow>Command:</yellow>' ) ; $ this -> output -> write ( PHP_EOL ) ; $ this -> output -> writeLn ( 'php reactor ' . $ command ) ; $ this -> output -> write ( PHP_EOL ) ; $ this -> output -> writeLn ( '<yellow>Description:</yellow>' ) ; $ this -> output -> write ( PHP_EOL ) ; $ this -> output -> writeLn ( $ commandInstance -> getCommandDescription ( ) ) ; if ( ! empty ( $ arguments = $ commandInstance -> getCommandArguments ( ) ) ) { $ this -> drawTable ( 'Arguments:' , [ 'Name' , 'Description' , 'Optional' ] , $ this -> convertArgumentsAndOptionsArrayToRows ( $ arguments ) ) ; } if ( ! empty ( $ options = $ commandInstance -> getCommandOptions ( ) ) ) { $ this -> drawTable ( 'Options:' , [ 'Name' , 'Description' , 'Optional' ] , $ this -> convertArgumentsAndOptionsArrayToRows ( $ options ) ) ; } return CommandInterface :: STATUS_SUCCESS ; }
Displays information about the chosen command.

@param  string $command Command
@return int
Displays information about the chosen command .