Ejemplo n.º 1
0
 /**
  * Get command to suggest to publish this release
  *
  * @param Version $version
  * @param Project $project
  * @return string Command name
  */
 protected function getPublishCommand($version, $project)
 {
     $command = 'cow release:publish ' . $version->getValue() . ' ' . $project->getName();
     switch ($this->output->getVerbosity()) {
         case Output::VERBOSITY_DEBUG:
             $command .= ' -vvv';
             break;
         case Output::VERBOSITY_VERY_VERBOSE:
             $command .= ' -vv';
             break;
         case Output::VERBOSITY_VERBOSE:
             $command .= ' -v';
             break;
     }
     return $command;
 }