'clear' command
This commit is contained in:
parent
cbf90ce5f0
commit
64c6487560
3 changed files with 8 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -249,7 +249,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "noise"
|
name = "noise"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"libnotify",
|
"libnotify",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "noise"
|
name = "noise"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -39,6 +39,8 @@ enum Commands {
|
||||||
Update {},
|
Update {},
|
||||||
/// Return currently playing song
|
/// Return currently playing song
|
||||||
Current {},
|
Current {},
|
||||||
|
/// Clear current queueueu
|
||||||
|
Clear {},
|
||||||
/// Query database
|
/// Query database
|
||||||
Search {
|
Search {
|
||||||
///Search query
|
///Search query
|
||||||
|
@ -156,6 +158,10 @@ fn main() {
|
||||||
println!("{status}");
|
println!("{status}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Commands::Clear {} => {
|
||||||
|
conn.clear().unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
Commands::Search {
|
Commands::Search {
|
||||||
query,
|
query,
|
||||||
max,
|
max,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue