Function capture

Source
fn capture(args: &[&str]) -> Result<Result<String, String>>
Expand description

Run a tmux command, returning Ok(stdout) on success or Err(stderr) on a non-zero exit (the outer io::Result is for spawn failures).