1: <?php
2: namespace Peridot\WebDriverManager\Console;
3:
4: use Symfony\Component\Console\Input\InputInterface;
5: use Symfony\Component\Console\Output\OutputInterface;
6:
7: 8: 9: 10: 11:
12: class CleanCommand extends AbstractManagerCommand
13: {
14: protected function configure()
15: {
16: $this
17: ->setName('clean')
18: ->setDescription('Delete contents of installation directory');
19: }
20:
21: 22: 23: 24: 25:
26: protected function execute(InputInterface $input, OutputInterface $output)
27: {
28: $output->writeln('<info>Deleting installed binaries...</info>');
29: $this->manager->clean();
30: $output->writeln('<info>Installation directory cleaned</info>');
31: return 0;
32: }
33: }
34: