Skip to content

Commit 217d863

Browse files
committed
UX improvement
1 parent 37be9a1 commit 217d863

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

lib/Command/FileSearch.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
144144

145145
$empty = false;
146146
foreach ($files as $file) {
147-
$output->writeln(
148-
' found <info>' . $file->getName() . '</info> ('
147+
$output->writeln('');
148+
$output->write(
149+
' > found <info>' . $file->getName() . '</info> ('
149150
. $this->humanReadable($file->getFilesize()) . ') in <info>'
150151
. $data->getName() . '</info>/<info>' . $chunk->getName() . '</info>'
151152
);
153+
$progressBar->setProgress(0);
152154
}
155+
$output->writeln('');
153156
} catch
154157
(ArchiveCreateException
155158
| ArchiveNotFoundException

lib/Command/PointRestore.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ private function restoreUniqueFile(
381381
$root = $data->getAbsolutePath();
382382
$chunk = $file->getRestoringChunk();
383383
$this->output->write(
384-
' > restoring ' . $file->getName() . ' (' . $this->humanReadable($file->getFilesize())
385-
. ') from <info>'
386-
. $chunk->getPath() . $chunk->getName() . '</info>'
384+
' > restoring ' . $file->getName() . ' (' . $this->humanReadable($file->getFilesize()) .
385+
') from <info>' . $chunk->getPath() . $chunk->getName() . '</info>' .
386+
' (rewind: ' . $this->getDateDiff($point->getDate(), time()) . '): '
387387
);
388388

389389
// TODO: display $root and add a confirmation step

0 commit comments

Comments
 (0)