changed "Results Summary:" color to Green #595

This commit is contained in:
DustInDark
2022-06-22 17:04:52 +09:00
parent 91a89a42ad
commit dfde18860f
2 changed files with 13 additions and 6 deletions

View File

@@ -252,6 +252,15 @@ pub fn write_color_buffer(
wtr.print(&buf)
}
/// no-colorのオプションの指定があるかを確認し、指定されている場合はNoneをかえし、指定されていない場合は引数で指定されたColorをSomeでラップして返す関数
pub fn get_writable_color(color: Color) -> Option<Color> {
if configs::CONFIG.read().unwrap().args.no_color {
None
} else {
Some(color)
}
}
/**
* CSVのrecord infoカラムに出力する文字列を作る
*/