public function run(array $args)
    {
        $command = (string)$args[1];
        $this->router->match($command);
        $args = array_slice($args, 2);

        return $this->router->executeCommand($args);
    }
public function run(array $args)
    {
        $command = (string)$args[1];
        $this->router->match($command);
        $args = array_slice($args, 2);

        return $this->router->executeCommand($args);
    }
public function run ( array $ args ) { $ command = ( string ) $ args [ 1 ] ; $ this -> router -> match ( $ command ) ; $ args = array_slice ( $ args , 2 ) ; return $ this -> router -> executeCommand ( $ args ) ; }
run run the command and return exit code.

@param array $args
@return int
run run the command and return exit code .