[−][src]Function sliderule::download_component
pub fn download_component(target_dir: &Path, url: &str) -> SROutput
Downloads a copy of a component from the remote repository at the specified URL.
target_dir
must be a valid Sliderule component directory.
url
URL of the remote repository to download the component from.
Examples
let output = sliderule::download_component( &test_dir.join("toplevel"), "https://github.com/jmwright/toplevel.git", ); assert_eq!(0, output.status); assert!(output.stdout[1].contains("Component was downloaded successfully."));