mirror of
https://github.com/RGBCube/dix
synced 2025-07-28 12:17:45 +00:00
print: change coloring
This commit is contained in:
parent
aff720bbaa
commit
55c969cfdf
1 changed files with 6 additions and 6 deletions
12
src/print.rs
12
src/print.rs
|
@ -19,8 +19,8 @@ pub fn print_added(set: HashSet<&str>, post: &HashMap<&str, HashSet<&str>>, col_
|
||||||
version_vec.sort_unstable();
|
version_vec.sort_unstable();
|
||||||
let version_str = version_vec.join(", ");
|
let version_str = version_vec.join(", ");
|
||||||
println!(
|
println!(
|
||||||
"{} {:col_width$} {} {}",
|
"[{}] {:col_width$} {} {}",
|
||||||
"[A:]".green().bold(),
|
"A:".green().bold(),
|
||||||
p,
|
p,
|
||||||
"@".yellow().bold(),
|
"@".yellow().bold(),
|
||||||
version_str.blue()
|
version_str.blue()
|
||||||
|
@ -45,8 +45,8 @@ pub fn print_removed(set: HashSet<&str>, pre: &HashMap<&str, HashSet<&str>>, col
|
||||||
version_vec.sort_unstable();
|
version_vec.sort_unstable();
|
||||||
let version_str = version_vec.join(", ");
|
let version_str = version_vec.join(", ");
|
||||||
println!(
|
println!(
|
||||||
"{} {:col_width$} {} {}",
|
"[{}] {:col_width$} {} {}",
|
||||||
"[R:]".red().bold(),
|
"R:".red().bold(),
|
||||||
p,
|
p,
|
||||||
"@".yellow(),
|
"@".yellow(),
|
||||||
version_str.blue()
|
version_str.blue()
|
||||||
|
@ -86,8 +86,8 @@ pub fn print_changes(
|
||||||
let version_str_post = version_vec_post.join(", ");
|
let version_str_post = version_vec_post.join(", ");
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"{} {:col_width$} {} {} ~> {}",
|
"[{}] {:col_width$} {} {} ~> {}",
|
||||||
"[C:]".bold().bright_yellow(),
|
"C:".bold().bright_yellow(),
|
||||||
p,
|
p,
|
||||||
"@".yellow(),
|
"@".yellow(),
|
||||||
version_str_pre.magenta(),
|
version_str_pre.magenta(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue