Crates.io | mprs |
lib.rs | mprs |
version | 0.4.5 |
source | src |
created_at | 2021-09-10 13:53:47.619335 |
updated_at | 2024-11-27 20:37:24.419737 |
description | mpd written client rust |
homepage | https://github.com/abdellatif-temsamani/mprs |
repository | https://github.com/abdellatif-temsamani/mprs |
max_upload_size | |
id | 449254 |
size | 62,948 |
A lightweight MPD client written in Rust, designed for simplicity,
performance, and open-source collaboration. mprs
provides a command-line
interface to control your MPD (Music Player Daemon) server efficiently.
To build mprs
.
# Build the project
cargo install mprs
To build and install mprs
, follow these steps:
# Build the project
cargo build --release
# Install the binary
cargo install --path .
The mprs
command-line tool provides subcommands for interacting with MPD.
mprs [OPTIONS] <COMMAND>
--host <HOST>
: Specify the MPD server host (default: 127.0.0.1
).--port <PORT>
: Specify the MPD server port (default: 6600
).-h, --help
: Display help information.Command | Description |
---|---|
current |
Display MPD's current playback info. |
play |
Play the currently queued song. |
pause |
Pause playback. |
next |
Skip to the next song in the queue. |
prev |
Go back to the previous song in the queue. |
stop |
Stop playback. |
kill |
Kill the MPD process. |
list |
List files in the MPD music_directory . |
add |
Add a song to the queue using its path. |
queued |
Show the current queue. |
clear |
Clear all songs from the queue. |
help |
Show help for a specific subcommand. |
Play a song:
mprs play
Pause playback:
mprs pause
List files in the music directory:
mprs list
Add a song to the queue:
mprs add <path-to-song>
Clear the queue:
mprs clear
Contributions are welcome under the terms of the GPL-3.0 License. Here's how you can contribute:
Please ensure your code adheres to Rust's style guidelines.
mprs
is distributed under the terms of the GNU General Public License
v3.0. See the LICENSE file for details.
mprs
Take control of your MPD music server with mprs
—an open-source, Rust-powered
client designed for simplicity and speed. 🎶