Skip to content

Commit

Permalink
offer module as an interactive option in config:export:single - fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
malcomio authored and jmolivas committed Jan 7, 2018
1 parent 407b89e commit 384c54c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Command/Config/ExportSingleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
use Drupal\Core\Config\CachedStorage;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Command\Shared\ExportTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Extension\Manager;
use Drupal\Core\Language\LanguageManagerInterface;
use Webmozart\PathUtil\Path;

class ExportSingleCommand extends Command
{
use ModuleTrait;
use ExportTrait;

/**
Expand Down Expand Up @@ -217,6 +219,13 @@ protected function interact(InputInterface $input, OutputInterface $output)
$input->setOption('name', [$name]);
}

$module = $input->getOption('module');
if (!$module) {
// @see Drupal\Console\Command\Shared\ModuleTrait::moduleQuestion
$module = $this->moduleQuestion($io);
}
$input->setOption('module', $module);

$module = $input->getOption('module');
if ($module) {
$optionalConfig = $input->getOption('optional');
Expand Down

0 comments on commit 384c54c

Please sign in to comment.