()
| 364 | } |
| 365 | |
| 366 | fn cmd_lint() -> Result<()> { |
| 367 | let root = trace_root_or_bail()?; |
| 368 | let r = load_trace(&root)?; |
| 369 | let warnings = lint(&r); |
| 370 | if warnings.is_empty() { |
| 371 | println!("clean ({} steps)", r.steps.len()); |
| 372 | } else { |
| 373 | println!("{}", serde_json::to_string_pretty(&warnings)?); |
| 374 | std::process::exit(1); |
| 375 | } |
| 376 | Ok(()) |
| 377 | } |
| 378 | |
| 379 | fn cmd_show(fmt: &str, downstream: Option<&str>) -> Result<()> { |
| 380 | let root = trace_root_or_bail()?; |
no test coverage detected
searching dependent graphs…