Skip to content

Commit

Permalink
Merge pull request #451 from consolidation/remove-supress-messages
Browse files Browse the repository at this point in the history
Backs out #396: Remove --supress-messages.
  • Loading branch information
greg-1-anderson authored Sep 23, 2016
2 parents 217d626 + 5b12474 commit 6d27f03
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
4 changes: 0 additions & 4 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ public function __construct($name, $version)
->addOption(
new InputOption('--progress-delay', null, InputOption::VALUE_REQUIRED, 'Number of seconds before progress bar is displayed in long-running task collections. Default: 2s.', Config::DEFAULT_PROGRESS_DELAY)
);
$this->getDefinition()
->addOption(
new InputOption('--supress-messages', null, InputOption::VALUE_NONE, 'Supress all Robo TaskIO messages.')
);
}

public function addInitRoboFileCommand($roboFile, $roboClass)
Expand Down
2 changes: 1 addition & 1 deletion src/Common/TaskIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function printTaskDebug($text, $context = null)
protected function printTaskOutput($level, $text, $context)
{
$logger = $this->logger();
if (($this->getConfig() && $this->getConfig()->isSupressed()) || !$logger) {
if (!$logger) {
return;
}
// Hide the progress indicator, if it is visible.
Expand Down
12 changes: 0 additions & 12 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ class Config
const PROGRESS_BAR_AUTO_DISPLAY_INTERVAL = 'progress-delay';
const DEFAULT_PROGRESS_DELAY = 2;
const SIMULATE = 'simulate';
const SUPRESS_MESSAGES = 'supress-messages';
const DECORATED = 'decorated';

protected $config = [];
Expand Down Expand Up @@ -48,7 +47,6 @@ public function getGlobalOptionDefaultValues()
[
self::PROGRESS_BAR_AUTO_DISPLAY_INTERVAL => self::DEFAULT_PROGRESS_DELAY,
self::SIMULATE => false,
self::SUPRESS_MESSAGES => false,
];

return $globalOptions;
Expand Down Expand Up @@ -86,16 +84,6 @@ public function setDecorated($decorated = true)
return $this->set(self::DECORATED, $decorated);
}

public function isSupressed()
{
return $this->get(self::SUPRESS_MESSAGES);
}

public function setSupressed($supressed = true)
{
return $this->set(self::SUPRESS_MESSAGES, $supressed);
}

public function setProgressBarAutoDisplayInterval($interval)
{
return $this->set(self::PROGRESS_BAR_AUTO_DISPLAY_INTERVAL, $interval);
Expand Down

0 comments on commit 6d27f03

Please sign in to comment.