cargo-drone 0.4.3

A cargo subcommand for Drone.
Documentation
//! Bindings to OpenOCD.

use config;
use std::process::Command;

/// Creates a command for OpenOCD.
pub fn command(config: &config::Root) -> Command {
  let mut command = Command::new("openocd");
  if let Some(ref openocd) = config.openocd {
    for file in &openocd.config {
      command.arg("-f").arg(file);
    }
  }
  command
}