Skip to content

Commit

Permalink
organise print messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lockieluke committed Mar 2, 2024
1 parent 5a2f31b commit 14ad456
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "swift-precompiler"
description = "A precompiler for Swift that allows you to use additional macros, include files, and more."
version = "0.1.2"
version = "0.1.3"
edition = "2021"
license = "MIT"
documentation = "https://docs.rs/swift-precompiler"
Expand Down
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,9 @@ fn main() {
}

let precompile_time_millis = precompile_time.elapsed().as_millis();
println!("{}: Precompiled {} calls to {} in {}{}", "success".green(), included_og_paths.len(),
format!("{}", if dry_run { "memory" } else { &out_abs_path }),
println!("{}: Precompiled {} calls in {}{}", "success".green(), included_og_paths.len(),
(if precompile_time_millis < 1000 { format!("{}ms", precompile_time_millis) } else { format!("{}s", precompile_time.elapsed().as_secs()) }).to_string().bold(),
if dry_run { String::new() } else { format!(", add {} to your Xcode build phase", out_abs_path.bold()) }
if dry_run || xcode_script_renderer { String::new() } else { format!(", add {} to your Xcode build phase", out_abs_path.bold()) }
);
}
Commands::Clean {
Expand Down

0 comments on commit 14ad456

Please sign in to comment.