pub fn update_to_document(
plan: &UpdatePlan,
dry_run: DryRun,
) -> UpdateReportDocumentExpand description
Builds the versioned UpdateReportDocument for plan.
ยงExamples
use deps_cli::format::DryRun;
use deps_cli::format::json::{UPDATE_SCHEMA_VERSION, update_to_document};
use deps_cli::update::UpdatePlan;
let document = update_to_document(&UpdatePlan::default(), DryRun::No);
assert_eq!(document.schema_version, UPDATE_SCHEMA_VERSION);
assert!(!document.dry_run);
assert!(document.items.is_empty());