Skip to content

Commit fda3d55

Browse files
committed
update some
1 parent d473f2b commit fda3d55

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/Command/PharCommand.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Swoft\Console\Annotation\Mapping\Command;
1212
use Swoft\Console\Annotation\Mapping\CommandMapping;
1313
use Swoft\Console\Annotation\Mapping\CommandOption;
14+
use Swoft\Console\Console;
1415
use Swoft\Console\Helper\Show;
1516
use Swoft\Console\Input\Input;
1617
use Swoft\Console\Output\Output;
@@ -120,6 +121,7 @@ public function pack(Input $input, Output $output): int
120121
});
121122
$cpr->on(PharCompiler::ON_COLLECTED, function () use ($counter) {
122123
$counter->send(-1);
124+
Console::writeln('');
123125
});
124126
}
125127

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

130132
$info = [
131133
PHP_EOL . '<success>Phar Build Completed!</success>',
132-
" - Phar File: $pharFile",
133-
' - Phar Size: ' . round(filesize($pharFile) / 1024 / 1024, 2) . ' Mb',
134-
' - Pack Time: ' . round(microtime(true) - $startAt, 3) . ' s',
135134
' - Pack File: ' . $cpr->getCounter(),
135+
' - Pack Time: ' . round(microtime(true) - $startAt, 3) . ' s',
136+
' - Phar Size: ' . round(filesize($pharFile) / 1024 / 1024, 2) . ' Mb',
137+
" - Phar File: $pharFile",
136138
' - Commit ID: ' . $cpr->getLastCommit(),
137139
];
138140
$output->writeln($info);

0 commit comments

Comments
 (0)