[−][src]Function autosnap::fetch_source
pub fn fetch_source(source_url: &Url) -> Result<PathBuf, Box<dyn Error>>
Fetch given remote source and 'install' it in the working directory, and return path to the source.
use autosnap::fetch_source; use url::Url; let source = fetch_source(&Url::parse("https://github.com/creekorful/osync.git").unwrap()).unwrap();