feat(cli): add 'message' subcommand to send private messages

`soulseek-rs message <username> <text>` connects, logs in, sends a private
message and exits. Smoke-tested against a local soulfind server.
This commit is contained in:
michel
2026-07-19 13:32:53 +02:00
parent a7372cc88e
commit f6127411d7
2 changed files with 52 additions and 0 deletions
+9
View File
@@ -89,6 +89,15 @@ pub enum Commands {
)]
max_concurrent_downloads: usize,
},
/// Send a private message to another user
Message {
/// Username of the recipient
username: String,
/// Message text to send
message: String,
},
}
pub fn parse_server_address(server: &str) -> color_eyre::Result<(String, u16)> {