function link($formula, $force = false)
    {
        return $this->cli->runAsUser(
            sprintf('brew link %s%s', $formula, $force ? ' --force': ''),
            function ($exitCode, $errorOutput) use ($formula) {
                output($errorOutput);

                throw new DomainException('Brew was unable to link [' . $formula . '].');
            }
        );
    }
function link($formula, $force = false)
    {
        return $this->cli->runAsUser(
            sprintf('brew link %s%s', $formula, $force ? ' --force': ''),
            function ($exitCode, $errorOutput) use ($formula) {
                output($errorOutput);

                throw new DomainException('Brew was unable to link [' . $formula . '].');
            }
        );
    }
function link ( $ formula , $ force = false ) { return $ this -> cli -> runAsUser ( sprintf ( 'brew link %s%s' , $ formula , $ force ? ' --force' : '' ) , function ( $ exitCode , $ errorOutput ) use ( $ formula ) { output ( $ errorOutput ) ; throw new DomainException ( 'Brew was unable to link [' . $ formula . '].' ) ; } ) ; }
Link passed formula

@param $formula
@param bool $force

@return string
Link passed formula