Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backs out #396: Remove --supress-messages. #451

Merged
merged 1 commit into from
Sep 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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