From 26d6630f5b396964efb6df5cf424d536a59e5329 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 6 May 2026 13:07:26 +0200 Subject: Add install script, shell completions, and systemd service - Add install.sh script that builds release, stops daemon, and installs binary - Add shell completions for bash, zsh, and fish - Add systemd user service unit file - Add public binary declaration in Cargo.toml - Add install command to CLI - Make current_track field public for MPRIS integration (placeholder) --- src/audio.rs | 2 +- src/cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/audio.rs b/src/audio.rs index d716a23..58ad2bf 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -16,7 +16,7 @@ pub enum AudioCommand { pub struct AudioEngine { command_tx: Sender, is_playing: Arc, - current_track: Arc>>, + pub current_track: Arc>>, track_ended: Arc, volume: Arc>, } diff --git a/src/cli.rs b/src/cli.rs index 1d83262..a18b8f1 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -4,7 +4,7 @@ use clap::{Parser, Subcommand}; use std::path::PathBuf; #[derive(Parser)] -#[command(name = "rsp")] +#[command(name = "rsp", infer_long_args = true)] #[command(about = "Rust music player daemon", long_about = None)] pub struct Cli { #[command(subcommand)] -- cgit v1.2.3