/** * Configure the command */ protected function configure() { $this->setName(self::COMMAND_NAME); $this->setDescription('Import "core_config_data" settings for an environment'); $this->addArgument('folder', InputArgument::REQUIRED, 'Import folder name'); $this->addArgument('environment', InputArgument::REQUIRED, 'Environment name. SubEnvs separated by slash e.g.: development/osx/developer01'); $this->addOption('base', null, InputOption::VALUE_OPTIONAL, 'Base folder name', 'base'); $this->addOption('format', 'm', InputOption::VALUE_OPTIONAL, 'Format: yaml, json (Default: yaml)', 'yaml'); parent::configure(); }
/** * Configure the command */ protected function configure() { $this->setName(self::COMMAND_NAME); $this->setDescription('Export settings from "core_config_data" into a file'); $this->addOption('format', 'm', InputOption::VALUE_OPTIONAL, 'Format: yaml, json', 'yaml'); $this->addOption('hierarchical', 'a', InputOption::VALUE_OPTIONAL, 'Create a hierarchical or a flat structure (not all export format supports that). Enable with: y', 'n'); $this->addOption('filename', 'f', InputOption::VALUE_OPTIONAL, 'File name into which should the export be written. Defaults into var directory.'); $this->addOption('include', 'i', InputOption::VALUE_OPTIONAL, 'Path prefix, multiple values can be comma separated; exports only those paths'); $this->addOption('includeScope', null, InputOption::VALUE_OPTIONAL, 'Scope name, multiple values can be comma separated; exports only those scopes'); $this->addOption('exclude', 'x', InputOption::VALUE_OPTIONAL, 'Path prefix, multiple values can be comma separated; exports everything except ...'); $this->addOption('filePerNameSpace', 's', InputOption::VALUE_OPTIONAL, 'Export each namespace into its own file. Enable with: y', 'n'); parent::configure(); }