Example #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $configfilename = $input->getOption('config');
     $config = Utils::loadConfig($configfilename);
     $driver = Utils::getDriverFromConfig($config);
     $key = $input->getArgument('key');
     $filelist = $driver->getFileListByKey($key);
     foreach ($filelist->getFiles() as $file) {
         $output->writeln(" * [" . $file->getFilename() . "]");
     }
 }
Example #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $configfilename = $input->getOption('config');
     $config = Utils::loadConfig($configfilename);
     $driver = Utils::getDriverFromConfig($config);
     $key = $input->getArgument('key');
     $filename = $input->getArgument('filename');
     $filelist = $driver->getFileListByKey($key);
     $filelist->delete($filename);
     $output->writeln("File deleted");
 }