Skip to content

Commit 566f7af

Browse files
committed
feat: update CliTest command to countdown before running npm outdated
1 parent 979b864 commit 566f7af

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Console/Command/CliTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ protected function configure(): void
3131

3232
protected function execute(InputInterface $input, OutputInterface $output): int
3333
{
34-
for ($i = 1; $i <= 10; $i++) {
35-
$output->writeln($i.'/10');
34+
for ($i = 5; $i >= 1; $i--) {
35+
$output->writeln('Start npm in ' . $i);
3636
sleep(1);
3737
}
3838

39+
$output->writeln('Running npm outdated...');
40+
exec('npm outdated', $npmOutput, $returnValue);
41+
foreach ($npmOutput as $line) {
42+
$output->writeln($line);
43+
}
44+
3945
return Command::SUCCESS;
4046
}
4147

0 commit comments

Comments
 (0)