From 0b2a864d85015e2f69f83d8be3d6a4e2ab10629f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 17 Nov 2025 19:14:53 +0800 Subject: Improve export output formatting and alignment --- crates/build_helper/src/bin/exporter.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/build_helper/src/bin/exporter.rs b/crates/build_helper/src/bin/exporter.rs index bc98497..24379d0 100644 --- a/crates/build_helper/src/bin/exporter.rs +++ b/crates/build_helper/src/bin/exporter.rs @@ -16,12 +16,12 @@ fn main() -> Result<(), Box> { let copied_files = export(target_dir, publish_dir, publish_binaries, copy_configs)?; let duration = start_time.elapsed(); - println!(); println!( - "Done (in {:.1}s) Publish {} {}", - duration.as_secs_f32(), + " {} publish {} {} in {:.1}s", + "Finished".green().bold(), copied_files, - if copied_files == 1 { "file" } else { "files" } + if copied_files == 1 { "file" } else { "files" }, + duration.as_secs_f32(), ); Ok(()) @@ -77,8 +77,8 @@ fn export( } println!( - " {} `{}` ({})", - "Copy".green().bold(), + " {} `{}` ({})", + "Binary".green().bold(), file_name, path.display() ); @@ -100,8 +100,8 @@ fn export( if source_path.exists() { println!( - " {} `{}` -> `{}` ({})", - "Copy".green().bold(), + " {} `{}` -> `{}` ({})", + "Other".green().bold(), config.from, config.to, source_path.display() -- cgit