'clear' command
This commit is contained in:
parent
cbf90ce5f0
commit
64c6487560
3 changed files with 8 additions and 2 deletions
|
@ -39,6 +39,8 @@ enum Commands {
|
|||
Update {},
|
||||
/// Return currently playing song
|
||||
Current {},
|
||||
/// Clear current queueueu
|
||||
Clear {},
|
||||
/// Query database
|
||||
Search {
|
||||
///Search query
|
||||
|
@ -156,6 +158,10 @@ fn main() {
|
|||
println!("{status}");
|
||||
}
|
||||
|
||||
Commands::Clear {} => {
|
||||
conn.clear().unwrap();
|
||||
}
|
||||
|
||||
Commands::Search {
|
||||
query,
|
||||
max,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue