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();
|
||||
let version_str = version_vec.join(", ");
|
||||
println!(
|
||||
"{} {:col_width$} {} {}",
|
||||
"[A:]".green().bold(),
|
||||
"[{}] {:col_width$} {} {}",
|
||||
"A:".green().bold(),
|
||||
p,
|
||||
"@".yellow().bold(),
|
||||
version_str.blue()
|
||||
|
@ -45,8 +45,8 @@ pub fn print_removed(set: HashSet<&str>, pre: &HashMap<&str, HashSet<&str>>, col
|
|||
version_vec.sort_unstable();
|
||||
let version_str = version_vec.join(", ");
|
||||
println!(
|
||||
"{} {:col_width$} {} {}",
|
||||
"[R:]".red().bold(),
|
||||
"[{}] {:col_width$} {} {}",
|
||||
"R:".red().bold(),
|
||||
p,
|
||||
"@".yellow(),
|
||||
version_str.blue()
|
||||
|
@ -86,8 +86,8 @@ pub fn print_changes(
|
|||
let version_str_post = version_vec_post.join(", ");
|
||||
|
||||
println!(
|
||||
"{} {:col_width$} {} {} ~> {}",
|
||||
"[C:]".bold().bright_yellow(),
|
||||
"[{}] {:col_width$} {} {} ~> {}",
|
||||
"C:".bold().bright_yellow(),
|
||||
p,
|
||||
"@".yellow(),
|
||||
version_str_pre.magenta(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue