From f7277cc01238a4306e574853a16ab89447a72aa0 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Thu, 5 Mar 2026 08:17:13 +0800 Subject: [PATCH] Improve output formatting for update checks in CheckUpdateCommand --- src/StaticPHP/Command/CheckUpdateCommand.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/StaticPHP/Command/CheckUpdateCommand.php b/src/StaticPHP/Command/CheckUpdateCommand.php index 9a2d5f5c..4fac0f63 100644 --- a/src/StaticPHP/Command/CheckUpdateCommand.php +++ b/src/StaticPHP/Command/CheckUpdateCommand.php @@ -48,12 +48,10 @@ class CheckUpdateCommand extends BaseCommand foreach ($artifacts as $artifact) { $result = $downloader->checkUpdate($artifact, bare: $bare); if (!$result->needUpdate) { - $this->output->writeln("Artifact {$artifact} is already up to date (version: {$result->new})"); + $this->output->writeln("Artifact {$artifact} is already up to date ({$result->new})"); } else { - $this->output->writeln("Update available for artifact: {$artifact}"); [$old, $new] = [$result->old ?? 'unavailable', $result->new ?? 'unknown']; - $this->output->writeln(" Old version: {$old}"); - $this->output->writeln(" New version: {$new}"); + $this->output->writeln("Update available for {$artifact}: {$old} -> {$new}"); } } return static::OK;