diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-17 19:14:53 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-17 19:14:53 +0800 |
| commit | 0b2a864d85015e2f69f83d8be3d6a4e2ab10629f (patch) | |
| tree | 3eb57e2955bd7298938d7e7d4bfe0c48589abb7c /crates/build_helper/src/bin/exporter.rs | |
| parent | 7e0d609459fdcc228ff2fcc667bb5b03295fc732 (diff) | |
Improve export output formatting and alignment
Diffstat (limited to 'crates/build_helper/src/bin/exporter.rs')
| -rw-r--r-- | crates/build_helper/src/bin/exporter.rs | 16 |
1 files 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<dyn std::error::Error>> { 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() |
