build_query_command

Function build_query_command 

Source
pub fn build_query_command(
    cmus_remote_bin: &str,
    socket_addr: &Option<String>,
    socket_pass: &Option<String>,
) -> Command
Expand description

Build the query command. This function it should call only one time entire the program life time, So it makes sense to make it inline. This function will return a std::process::Command that can be used to query cmus, you should store it in a variable :).