* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\console\command\config; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class set extends command { protected function configure() { $this ->setName('config:set') ->setDescription("Sets a configuration option's value") ->addArgument( 'key', InputArgument::REQUIRED, "The configuration option's name" ) ->addArgument( 'value', InputArgument::REQUIRED, 'New configuration value, use 0 and 1 to specify boolean values' ) ->addOption( 'dynamic', 'd', InputOption::VALUE_NONE, 'Set this option if the configuration option changes too frequently to be efficiently cached.' ) ; } protected function execute(InputInterface $input, OutputInterface $output) { $key = $input->getArgument('key'); $value = $input->getArgument('value'); $use_cache = !$input->getOption('dynamic'); $this->config->set($key, $value, $use_cache); $output->writeln("Successfully set config $key"); } } s6'>distro/mes6 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-02 07:30:49 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-02 07:30:49 +0000
commit48a30c18d52b1131c6a3fe9b0b2f1265d28501a5 (patch)
tree9976511afafde2a8fa025ff93b97f8a31226b82d /perl-install/bootloader.pm
parent6b28ce130d4c6737ba8956edb3dfc0be2943805b (diff)
downloaddrakx-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.tar
drakx-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.tar.gz
drakx-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.tar.bz2
drakx-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.tar.xz
drakx-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.zip
set_default: use sync for removable devices