(binary: &Path, root: &Path, config: &Path, url: &str, view: &str)
| 40 | Ok(result) |
| 41 | } |
| 42 | fn fresh(binary: &Path, root: &Path, config: &Path, url: &str, view: &str) -> Result<()> { |
| 43 | drop(Repository::init(root)?); |
| 44 | cli( |
| 45 | binary, |
| 46 | root, |
| 47 | config, |
| 48 | &["pull", url, "--from-view", view, "--to-view", view], |
| 49 | )?; |
| 50 | Ok(()) |
| 51 | } |
| 52 | fn record(report: &mut Value, name: &str, value: Value) { |
| 53 | report.as_object_mut().unwrap().insert(name.into(), value); |
| 54 | if let Some(root) = report["root"].as_str() { |