Example #1
0
 /**
  * Configure the command parameters.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('get')->setDescription('Get database from Amazon S3')->addArgument('name', InputArgument::REQUIRED, 'Project identifier')->addOption('file', null, InputOption::VALUE_REQUIRED, 'File to import, otherwise latest downloaded')->addOption('--drop-tables', '-d', InputOption::VALUE_NONE, 'Drop tables before import')->addOption('--region', '-r', InputOption::VALUE_REQUIRED, 'Optionally specify region, otherwise default configuration will be used.')->addOption('--bucket', '-b', InputOption::VALUE_REQUIRED, 'Optionally specify bucket, otherwise default configuration will be used. ');
 }
Example #2
0
 /**
  * Configure the command parameters.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ls')->setDescription('List available backups')->addArgument('name', InputArgument::REQUIRED, 'Project identifier')->addOption('--region', '-r', InputOption::VALUE_REQUIRED, 'Optionally specify region, otherwise default configuration will be used.')->addOption('--bucket', '-b', InputOption::VALUE_REQUIRED, 'Optionally specify bucket, otherwise default configuration will be used. ');
 }
Example #3
0
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  */
 protected function initialize(InputInterface $input, OutputInterface $output)
 {
     parent::initialize($input, $output);
     $this->cleanUp();
 }