public function run($args)
    {
        $args = $this->parseArgs($args);

        if (!isset($args[0]) || !$args[0] || !$this->isPackageName($args[0])) {
            return $this->error('&require-package');
        }

        if (!is_dir($this->cwd.'/vendor/'.$args[0])) {
            return $this->error('&package-not-found');
        }

        $packageName = $args[0];
        $projectName = isset($args[1]) ? $args[1] : basename($args[0]);

        return $this->exec('mount', 'mount', [$packageName, $projectName]);
    }
public function run($args)
    {
        $args = $this->parseArgs($args);

        if (!isset($args[0]) || !$args[0] || !$this->isPackageName($args[0])) {
            return $this->error('&require-package');
        }

        if (!is_dir($this->cwd.'/vendor/'.$args[0])) {
            return $this->error('&package-not-found');
        }

        $packageName = $args[0];
        $projectName = isset($args[1]) ? $args[1] : basename($args[0]);

        return $this->exec('mount', 'mount', [$packageName, $projectName]);
    }
public function run ( $ args ) { $ args = $ this -> parseArgs ( $ args ) ; if ( ! isset ( $ args [ 0 ] ) || ! $ args [ 0 ] || ! $ this -> isPackageName ( $ args [ 0 ] ) ) { return $ this -> error ( '&require-package' ) ; } if ( ! is_dir ( $ this -> cwd . '/vendor/' . $ args [ 0 ] ) ) { return $ this -> error ( '&package-not-found' ) ; } $ packageName = $ args [ 0 ] ; $ projectName = isset ( $ args [ 1 ] ) ? $ args [ 1 ] : basename ( $ args [ 0 ] ) ; return $ this -> exec ( 'mount' , 'mount' , [ $ packageName , $ projectName ] ) ; }
Run mount command.

@param $args

@return string
Run mount command .