Skip to main content

command_for

Function command_for 

Source
pub fn command_for(
    backend: NotifyBackend,
    title: &str,
    body: &str,
) -> (String, Vec<String>)
Expand description

Build the command + args for a given backend without spawning.

Returns (program, args). For NotifyBackend::Stderr returns ("", vec![]) — the caller should handle this variant directly.