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:
parent
b6162a9dcb
commit
faf8036b19
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue