src/mako/reactor/Reactor.php
public function run(): int
	{
		$this->handleGlobalOptions();

		if(($command = $this->input->getArgument(1)) === null)
		{
			return $this->displayReactorInfoAndCommandList();
		}

		if($this->commandExists($command) === false)
		{
			return $this->unknownCommand($command);
		}

		if($this->input->getArgument('help', false) !== false)
		{
			return $this->displayCommandHelp($command);
		}

		return $this->dispatch($command);
	}
public function run(): int
	{
		$this->handleGlobalOptions();

		if(($command = $this->input->getArgument(1)) === null)
		{
			return $this->displayReactorInfoAndCommandList();
		}

		if($this->commandExists($command) === false)
		{
			return $this->unknownCommand($command);
		}

		if($this->input->getArgument('help', false) !== false)
		{
			return $this->displayCommandHelp($command);
		}

		return $this->dispatch($command);
	}
public function run ( ) : int { $ this -> handleGlobalOptions ( ) ; if ( ( $ command = $ this -> input -> getArgument ( 1 ) ) === null ) { return $ this -> displayReactorInfoAndCommandList ( ) ; } if ( $ this -> commandExists ( $ command ) === false ) { return $ this -> unknownCommand ( $ command ) ; } if ( $ this -> input -> getArgument ( 'help' , false ) !== false ) { return $ this -> displayCommandHelp ( $ command ) ; } return $ this -> dispatch ( $ command ) ; }
Run the reactor.

@return int
Run the reactor .