protected function configure()
 {
     $this->vars = [];
     $this->setName('setup')->setDescription('Sets up the local testing environment according to rules stored in a configuration file.')->addArgument('config', InputArgument::OPTIONAL, 'If set, the specified configuration file will be used.', 'setup.yml');
     parent::configure();
 }
 protected function configure()
 {
     $this->setName('dummyExtending');
     $this->addOption('one', null, InputOption::VALUE_OPTIONAL)->addOption('two', null, InputOption::VALUE_OPTIONAL)->addOption('three', null, InputOption::VALUE_OPTIONAL);
     parent::configure();
 }
 protected function configure()
 {
     $this->setName('search-replace')->setDescription('Search and replace a string in a database dump')->addArgument('old', InputArgument::REQUIRED, 'A string to search for in the dump file')->addArgument('new', InputArgument::REQUIRED, 'Replace instances of the `old` string with this new string')->addArgument('file', InputArgument::REQUIRED, 'The path to the target SQL dump file')->addArgument('output', null, InputArgument::OPTIONAL, 'If set, the replaced contents will be written to this file')->addOption('skip-if-missing', null, InputOption::VALUE_OPTIONAL, 'If set, the operation will not fail if source file is missing');
     parent::configure();
 }
Beispiel #4
0
 protected function configure()
 {
     $this->setName('db:snapshot')->setDescription('Takes a snapshot of a database to be shared as a fixture.')->addArgument('snapshot', InputArgument::REQUIRED, 'Specifies the filename (without extension) of the snapshot files.')->addArgument('name', InputArgument::REQUIRED, 'Specifies the name of the database to snapshot.')->addOption('host', null, InputOption::VALUE_OPTIONAL, 'If set the specified host will be used to connect to the database', 'localhost')->addOption('user', 'u', InputOption::VALUE_OPTIONAL, 'If set the specified user will be used to connect to the database', 'root')->addOption('pass', 'p', InputOption::VALUE_OPTIONAL, 'If set the specified password will be used to connect to the database', 'root')->addOption('dump-file', null, InputOption::VALUE_OPTIONAL, 'If set the local version of the database will be dumped in the specified file; should be absolute path or a path relative to the root folder.')->addOption('dist-dump-file', null, InputOption::VALUE_OPTIONAL, 'If set the distribution version of the database will be dumped in the specified file; should be absolute path or a path relative to the root folder.')->addOption('skip-tables', null, InputOption::VALUE_OPTIONAL, 'A comma separated list of tables that should not be included in the dump.')->addOption('local-url', null, InputOption::VALUE_OPTIONAL, 'The local setup domain that should be replaced in the distribution version of the dump file.', 'http://local.dev')->addOption('dist-url', null, InputOption::VALUE_OPTIONAL, 'The distribution setup domain that should be used in the distribution version of the dump file.', 'http://dist.dev');
     parent::configure();
 }