Skip to content

Commit

Permalink
Remove a drush_get_context() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Sep 22, 2017
1 parent bf36c5f commit 76a83bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Commands/core/CoreCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public function globalOptions($options = ['format' => 'table'])
$def = $application->getDefinition();
foreach ($def->getOptions() as $key => $value) {
$rows[] = [
'name' => '--'. $key,
'description' => $value->getDescription(),
'name' => '--'. $key,
'description' => $value->getDescription(),
];
}
return new RowsOfFields($rows);
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/core/DrupliconCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DrupliconCommands extends DrushCommands
*
* @hook post-command *
* @option druplicon Shows the druplicon as glorious ASCII art.
* @todo hidden is not yet part of annotated-command project. It is recognized by Drush's annotation_adapter.inc
* @todo hidden-options is not yet part of annotated-command project. It is recognized by Drush's annotation_adapter.inc
* @hidden-options druplicon
*/
public function druplicon($result, CommandData $commandData)
Expand All @@ -31,7 +31,7 @@ public function druplicon($result, CommandData $commandData)
if ($commandData->input()->hasOption('druplicon') && $commandData->input()->getOption('druplicon')) {
$this->logger()->debug(dt('Displaying Druplicon for "!command" command.', array('!command' => $commandName)));
$misc_dir = DRUSH_BASE_PATH . '/misc';
if (drush_get_context('DRUSH_NOCOLOR')) {
if ($commandData->input()->getOption('no-ansi')) {
$content = file_get_contents($misc_dir . '/druplicon-no_color.txt');
} else {
$content = file_get_contents($misc_dir . '/druplicon-color.txt');
Expand Down

0 comments on commit 76a83bd

Please sign in to comment.