aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/update.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-22 21:40:38 +0900
committernsfisis <nsfisis@gmail.com>2026-02-22 21:42:00 +0900
commitb6347171c9ceaf508d28ffd40fac241970a1c981 (patch)
tree380fbdd0d657fbdfe5d270bd2b62e0b3b69df4b8 /crates/mozart/src/commands/update.rs
parente7ca97f8d8b0a2e92235771657e48157e5257f2c (diff)
downloadphp-mozart-b6347171c9ceaf508d28ffd40fac241970a1c981.tar.gz
php-mozart-b6347171c9ceaf508d28ffd40fac241970a1c981.tar.zst
php-mozart-b6347171c9ceaf508d28ffd40fac241970a1c981.zip
fix(bump): align output messages with Composer output
- "Nothing to bump." → "No requirements to update in <path>." - "N constraint(s) bumped successfully." → "<path> has been updated (N changes)." - Dry-run now shows "<path> would be updated with:" followed by " - require.<pkg>: <ver>" per change, matching Composer's format - Also update bump message in update command for consistency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/update.rs')
-rw-r--r--crates/mozart/src/commands/update.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/update.rs b/crates/mozart/src/commands/update.rs
index 7924eca..7fbec1c 100644
--- a/crates/mozart/src/commands/update.rs
+++ b/crates/mozart/src/commands/update.rs
@@ -1104,7 +1104,10 @@ pub async fn execute(
updated_lock.content_hash = new_hash;
updated_lock.write_to_file(&lock_path)?;
- console.info(&format!("{} constraint(s) bumped.", bumped));
+ console.info(&format!(
+ "{} has been updated ({bumped} changes).",
+ composer_json_path.display()
+ ));
}
}