protected function execute(InputInterface $input, OutputInterface $output) { $this->dialog = $this->getHelper('dialog'); $this->output = $output; $path = $input->getArgument('src'); $version = $input->getOption('ver'); $uri = $input->getOption('uri'); /** @var $drupal DrupalBootstrapHelper */ $drupal = $this->getHelper('drupal-bootstrap'); $drupal->boot($path, $version, $uri); $builder = new SiteBuilder(); $builder->dumpToConsole($output, $this->getHelper('table')); }
protected function execute(InputInterface $input, OutputInterface $output) { $this->dialog = $this->getHelper('dialog'); $this->output = $output; $path = $input->getArgument('target'); $drupal = $this->getHelper('drupal-bootstrap'); $drupal->boot($path); if ($file = $input->getArgument('import')) { $builder = new SiteBuilder(); $builder->importFromYamlFile($file); $builder->buildFromDefinition(); } else { // run interactive $this->mainQuestion(); } return 0; }