Munch command
This commit is contained in:
parent
5556ea70df
commit
c9ac64d504
4 changed files with 7 additions and 13 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -268,7 +268,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "noise"
|
name = "noise"
|
||||||
version = "0.1.7"
|
version = "0.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"clap_complete",
|
"clap_complete",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "noise"
|
name = "noise"
|
||||||
version = "0.1.7"
|
version = "0.1.8"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Nox Sluijtman"]
|
authors = ["Nox Sluijtman"]
|
||||||
|
|
||||||
|
|
|
@ -60,17 +60,18 @@ fn main() {
|
||||||
| Commands::Search { .. }
|
| Commands::Search { .. }
|
||||||
| Commands::Find { .. }
|
| Commands::Find { .. }
|
||||||
| Commands::Crossfade { .. }
|
| Commands::Crossfade { .. }
|
||||||
|
| Commands::Volume { .. }
|
||||||
| Commands::Shuffle = cmd
|
| Commands::Shuffle = cmd
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let things: Vec<String> = conn
|
let _things: Vec<String> = conn
|
||||||
.queue()
|
.queue()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.iter()
|
.iter()
|
||||||
.map(|x| x.place.unwrap().pos.to_string())
|
.map(|x| x.place.unwrap().pos.to_string())
|
||||||
.collect();
|
.collect();
|
||||||
println!("{things:?}");
|
// println!("{things:?}");
|
||||||
println!("{}", conn.get_status(cli.verbose));
|
println!("{}", conn.get_status(cli.verbose));
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,6 @@ pub trait Noise {
|
||||||
fn shuf(&mut self);
|
fn shuf(&mut self);
|
||||||
fn get_status(&mut self, verbose: bool) -> String;
|
fn get_status(&mut self, verbose: bool) -> String;
|
||||||
fn list_queue(&mut self, file: bool, _verbose: bool);
|
fn list_queue(&mut self, file: bool, _verbose: bool);
|
||||||
// fn get_art(&mut self);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Noise for Client {
|
impl Noise for Client {
|
||||||
|
@ -80,9 +79,8 @@ impl Noise for Client {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn munch(&mut self) {
|
fn munch(&mut self) {
|
||||||
// let current_song = self.currentsong().unwrap().unwrap().place.unwrap();
|
let current_song = self.currentsong().unwrap().unwrap().place.unwrap();
|
||||||
// self.delete(current_song).unwrap();
|
self.delete(current_song.pos).unwrap();
|
||||||
todo!("Not net implemented")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn length(&mut self) {
|
fn length(&mut self) {
|
||||||
|
@ -186,11 +184,6 @@ impl Noise for Client {
|
||||||
|
|
||||||
output.join("\n")
|
output.join("\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
// fn get_art(&mut self) {
|
|
||||||
// let current_song = self.currentsong().unwrap().unwrap().file;
|
|
||||||
// self.albumart(¤t_song).unwrap();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn format_song(song: Song) -> String {
|
fn format_song(song: Song) -> String {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue