/** * 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. '); }
/** * 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. '); }
/** * @param InputInterface $input * @param OutputInterface $output */ protected function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); $this->cleanUp(); }