Skip to content

Commit

Permalink
UX improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl committed Oct 5, 2021
1 parent 37be9a1 commit 217d863
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions lib/Command/FileSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$empty = false;
foreach ($files as $file) {
$output->writeln(
' found <info>' . $file->getName() . '</info> ('
$output->writeln('');
$output->write(
' > found <info>' . $file->getName() . '</info> ('
. $this->humanReadable($file->getFilesize()) . ') in <info>'
. $data->getName() . '</info>/<info>' . $chunk->getName() . '</info>'
);
$progressBar->setProgress(0);
}
$output->writeln('');
} catch
(ArchiveCreateException
| ArchiveNotFoundException
Expand Down
6 changes: 3 additions & 3 deletions lib/Command/PointRestore.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ private function restoreUniqueFile(
$root = $data->getAbsolutePath();
$chunk = $file->getRestoringChunk();
$this->output->write(
' > restoring ' . $file->getName() . ' (' . $this->humanReadable($file->getFilesize())
. ') from <info>'
. $chunk->getPath() . $chunk->getName() . '</info>'
' > restoring ' . $file->getName() . ' (' . $this->humanReadable($file->getFilesize()) .
') from <info>' . $chunk->getPath() . $chunk->getName() . '</info>' .
' (rewind: ' . $this->getDateDiff($point->getDate(), time()) . '): '
);

// TODO: display $root and add a confirmation step
Expand Down

0 comments on commit 217d863

Please sign in to comment.