1
0
Fork 0
mirror of https://git.sr.ht/~nixgoat/vento synced 2024-11-16 03:53:04 +00:00

archive: Fixed slot colors

In the confirmation message the slot being exported showed as white. It
should now be colored in either green, blue or red.
This commit is contained in:
Lux Aliaga 2023-02-17 12:44:18 -03:00
parent b6162a9dcb
commit faf8036b19
Signed by: lux
GPG key ID: B56C805968637437

View file

@ -40,9 +40,9 @@ pub fn export_inv(slot: &str, output: PathBuf, message: bool) -> Result<()> {
"✅ {} {} {} {}",
"Exported".green(),
match slot {
"a" => "active",
"i" => "inactive",
_ => &slot,
"a" | "active" => "active".green(),
"i" | "inactive" => "inactive".blue(),
_ => slot.red(),
}
.bold(),
"slot into".green(),