@@ 71-78 (lines=8) @@ | ||
68 | $output->writeln('Torrents for remove:'); |
|
69 | TorrentListUtils::printTorrentsTable($torrentList, $output); |
|
70 | ||
71 | if (!$input->getOption('yes')) { |
|
72 | $helper = $this->getHelper('question'); |
|
73 | $question = new ConfirmationQuestion('Continue with this action? ', false); |
|
74 | if (!$helper->ask($input, $output, $question)) { |
|
75 | $output->writeln('Aborting.'); |
|
76 | return 1; |
|
77 | } |
|
78 | } |
|
79 | ||
80 | $this->dryRun($input, $output, function () use ($config, $torrentList, $client, $input, $output) { |
|
81 | try { |
@@ 54-61 (lines=8) @@ | ||
51 | $output->writeln('Duplicate torrents for remove:'); |
|
52 | TorrentListUtils::printTorrentsTable($obsoleteList, $output); |
|
53 | ||
54 | if (!$input->getOption('yes')) { |
|
55 | $helper = $this->getHelper('question'); |
|
56 | $question = new ConfirmationQuestion('Continue with this action? ', false); |
|
57 | if (!$helper->ask($input, $output, $question)) { |
|
58 | $output->writeln('Aborting.'); |
|
59 | return 1; |
|
60 | } |
|
61 | } |
|
62 | ||
63 | $this->dryRun($input, $output, function () use ($client, $obsoleteList, $config, $input, $output) { |
|
64 | try { |