mirror of
https://git.sr.ht/~nixgoat/vento
synced 2024-11-25 00:05:46 +00:00
Compare commits
2 commits
dadb0d721f
...
5a0988d2c6
Author | SHA1 | Date | |
---|---|---|---|
Lux Aliaga | 5a0988d2c6 | ||
Lux Aliaga | 833669af3c |
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -592,7 +592,7 @@ checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "vento"
|
name = "vento"
|
||||||
version = "1.1.1"
|
version = "1.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"colored",
|
"colored",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "vento"
|
name = "vento"
|
||||||
version = "1.1.1"
|
version = "1.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
|
|
25
src/item.rs
25
src/item.rs
|
@ -90,10 +90,19 @@ pub fn take(file: &String, slot: &str, message: bool) -> Result<()> {
|
||||||
|
|
||||||
if message {
|
if message {
|
||||||
println!(
|
println!(
|
||||||
"✅ {} {} {} ",
|
"✅ {} {} {} {} {} {} {}",
|
||||||
"Took".green(),
|
"Took".green(),
|
||||||
&filename.bold(),
|
&filename.bold(),
|
||||||
format!("from {}", &sourcelocation.to_str().unwrap()).green()
|
"from".green(),
|
||||||
|
&sourcelocation.to_str().unwrap(),
|
||||||
|
"to".green(),
|
||||||
|
match slot {
|
||||||
|
"active" => slot.green(),
|
||||||
|
"inactive" => slot.blue(),
|
||||||
|
_ => slot.red(),
|
||||||
|
}
|
||||||
|
.bold(),
|
||||||
|
"slot".green()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,10 +177,18 @@ pub fn drop(file: &String, slot: &str, dest: PathBuf, message: bool) -> Result<(
|
||||||
|
|
||||||
if message {
|
if message {
|
||||||
println!(
|
println!(
|
||||||
"✅ {} {} {} ",
|
"✅ {} {} {} {} {} {}",
|
||||||
"Dropped".green(),
|
"Dropped".green(),
|
||||||
&file.bold(),
|
&file.bold(),
|
||||||
format!("into {}", &destpath.to_str().unwrap()).green()
|
"from".green(),
|
||||||
|
match slot {
|
||||||
|
"active" => slot.green(),
|
||||||
|
"inactive" => slot.blue(),
|
||||||
|
_ => slot.red(),
|
||||||
|
}
|
||||||
|
.bold(),
|
||||||
|
"slot into".green(),
|
||||||
|
&destpath.to_str().unwrap()
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue