From 3813267fed5fcc7e9b7f867a9c17c98faf545020 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 21 Feb 2026 19:39:04 +0900 Subject: fix(licenses): match Composer text output format Add "Dependencies:" label and remove column headers/separator from text output to align with Composer's licenses command behavior. Co-Authored-By: Claude Opus 4.6 --- crates/mozart/src/commands/licenses.rs | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'crates') diff --git a/crates/mozart/src/commands/licenses.rs b/crates/mozart/src/commands/licenses.rs index c7e79ae..e68c469 100644 --- a/crates/mozart/src/commands/licenses.rs +++ b/crates/mozart/src/commands/licenses.rs @@ -179,6 +179,7 @@ fn render_text(root_name: &str, root_version: &str, root_license: &str, entries: println!("Name: {}", root_name); println!("Version: {}", root_version); println!("Licenses: {}", root_license); + println!("Dependencies:"); println!(); if entries.is_empty() { @@ -186,34 +187,8 @@ fn render_text(root_name: &str, root_version: &str, root_license: &str, entries: } // Compute column widths - let name_width = entries - .iter() - .map(|e| e.name.len()) - .max() - .unwrap_or(0) - .max("Name".len()); - let version_width = entries - .iter() - .map(|e| e.version.len()) - .max() - .unwrap_or(0) - .max("Version".len()); - - // Print header - println!( - "{: