public function generalCommand($composerCommand, $execPath, $composerArgs, $projects, $options)
{
$globalBaseDir = $options['base-dir'];
$binDir = $options['bin-dir'];
$env = array("COMPOSER_BIN_DIR" => $binDir);
$result = array();
foreach ($projects as $project => $version) {
$installLocation = "{$globalBaseDir}/{$project}";
$projectWithVersion = $this->projectWithVersion($project, $version);
$commandToExec = $this->buildGlobalCommand($composerCommand, $execPath, $composerArgs, $projectWithVersion, $env, $installLocation);
$result[] = $commandToExec;
}
return $result;
}