MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / apply_manifests

Method apply_manifests

atomic-cli/src/commands/clone/command.rs:575–593  ·  view source on GitHub ↗

Apply manifests in root→leaf order, reconciling scaffold views first. Returns one outcome per manifest, in apply order.

(
        &self,
        repo: &mut Repository,
        manifests: &[ViewManifest],
    )

Source from the content-addressed store, hash-verified

573 ///
574 /// Returns one outcome per manifest, in apply order.
575 fn apply_manifests(
576 &self,
577 repo: &mut Repository,
578 manifests: &[ViewManifest],
579 ) -> CliResult<Vec<ManifestApplyOutcome>> {
580 let mut outcomes = Vec::with_capacity(manifests.len());
581 for manifest in manifests {
582 self.reconcile_scaffold_view(repo, manifest)?;
583 let outcome = repo.apply_view_manifest(manifest).map_err(|e| {
584 CliError::Internal(anyhow::anyhow!(
585 "apply manifest for view '{}': {}",
586 manifest.name,
587 e
588 ))
589 })?;
590 outcomes.push(outcome);
591 }
592 Ok(outcomes)
593 }
594
595 /// Clone every remote view not already applied by the primary chain.
596 ///

Callers 1

run_asyncMethod · 0.80

Calls 4

apply_view_manifestMethod · 0.80
lenMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected