| 1 | <?php |
||
| 18 | class CleanupCommand extends AbstractCommand implements IAggregatorAwareCommand |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | protected function configure() |
||
| 25 | { |
||
| 26 | $this |
||
| 27 | ->setName('cleanup') |
||
| 28 | ->setDescription( |
||
| 29 | 'Recursively clean up the working copy, removing locks, resuming unfinished operations, etc.' |
||
| 30 | ) |
||
| 31 | ->addArgument( |
||
| 32 | 'path', |
||
| 33 | InputArgument::OPTIONAL, |
||
| 34 | 'Working copy path', |
||
| 35 | '.' |
||
| 36 | ); |
||
| 37 | |||
| 38 | parent::configure(); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Returns option names, that makes sense to use in aggregation mode. |
||
| 58 | * |
||
| 59 | * @return array |
||
| 60 | */ |
||
| 61 | public function getAggregatedOptions() |
||
| 65 | |||
| 66 | } |
||
| 67 |