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

inv: Add directory count to inventory list

This commit modifies the spacing before an item in the inventory list.
This commit is contained in:
Lux Aliaga 2022-09-17 22:43:34 -03:00
parent 6c10953e88
commit 445b5b1671
Signed by: lux
GPG key ID: B56C805968637437

View file

@ -62,11 +62,14 @@ pub fn list(slot: &str) {
println!(
"🗃️ {}",
format!(
"Files in {} inventory:",
"Files in {} inventory ({}):",
match slot {
"active" => format!("{}", slot).bold(),
"inactive" | _ => format!("{}", slot).blue().bold(),
}
},
format!("{}", fs::read_dir(&slotdir).unwrap().count())
.white()
.bold()
)
.green()
);
@ -137,6 +140,7 @@ fn create_slots() {
.expect("❌ Vento was unable to initalize. Do you have the correct permissions?");
println!(
"🎉 {}", format!("Vento has been succesfully initialized!").green()
"🎉 {}",
format!("Vento has been succesfully initialized!").green()
);
}