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:
parent
6c10953e88
commit
445b5b1671
10
src/inv.rs
10
src/inv.rs
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue