aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cli.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 79c31a8..8b39519 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -104,6 +104,8 @@ pub enum Commands {
104 }, 104 },
105 /// display lyrics 105 /// display lyrics
106 Lyrics, 106 Lyrics,
107 /// Interactive control shell (like bluetoothctl)
108 Ctl,
107} 109}
108 110
109#[derive(Subcommand)] 111#[derive(Subcommand)]
@@ -350,6 +352,9 @@ impl Cli {
350 Commands::Lyrics => { 352 Commands::Lyrics => {
351 let _ = crate::daemon::send_command("lyrics".to_string()); 353 let _ = crate::daemon::send_command("lyrics".to_string());
352 } 354 }
355 Commands::Ctl => {
356 crate::ctl::run()?;
357 }
353 } 358 }
354 Ok(()) 359 Ok(())
355 } 360 }