Skip to main content

run_command

Function run_command 

Source
pub fn run_command(
    cmd: Commands,
    system: &SonosSystem,
    config: &Config,
    global: &GlobalFlags,
) -> Result<CommandOutput, CliError>
Expand description

Run a command and report both what it printed and whether a speaker actually answered while producing it.

Most arms return CommandOutput::live: they end in a SOAP call whose error is propagated with ?, so reaching Ok is itself proof of contact. The read-only listings (speakers, groups, status) are the exceptions — they tolerate per-field failure by design, which is exactly how a total discovery failure used to render as success.