Skip to content

Commit

Permalink
update some
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Dec 1, 2019
1 parent d473f2b commit fda3d55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Command/PharCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Swoft\Console\Annotation\Mapping\Command;
use Swoft\Console\Annotation\Mapping\CommandMapping;
use Swoft\Console\Annotation\Mapping\CommandOption;
use Swoft\Console\Console;
use Swoft\Console\Helper\Show;
use Swoft\Console\Input\Input;
use Swoft\Console\Output\Output;
Expand Down Expand Up @@ -120,6 +121,7 @@ public function pack(Input $input, Output $output): int
});
$cpr->on(PharCompiler::ON_COLLECTED, function () use ($counter) {
$counter->send(-1);
Console::writeln('');
});
}

Expand All @@ -129,10 +131,10 @@ public function pack(Input $input, Output $output): int

$info = [
PHP_EOL . '<success>Phar Build Completed!</success>',
" - Phar File: $pharFile",
' - Phar Size: ' . round(filesize($pharFile) / 1024 / 1024, 2) . ' Mb',
' - Pack Time: ' . round(microtime(true) - $startAt, 3) . ' s',
' - Pack File: ' . $cpr->getCounter(),
' - Pack Time: ' . round(microtime(true) - $startAt, 3) . ' s',
' - Phar Size: ' . round(filesize($pharFile) / 1024 / 1024, 2) . ' Mb',
" - Phar File: $pharFile",
' - Commit ID: ' . $cpr->getLastCommit(),
];
$output->writeln($info);
Expand Down

0 comments on commit fda3d55

Please sign in to comment.