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

Method apply_manifests

atomic-cli/src/commands/clone/command.rs:663–681  ·  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

661 ///
662 /// Returns one outcome per manifest, in apply order.
663 fn apply_manifests(
664 &self,
665 repo: &mut Repository,
666 manifests: &[ViewManifest],
667 ) -> CliResult<Vec<ManifestApplyOutcome>> {
668 let mut outcomes = Vec::with_capacity(manifests.len());
669 for manifest in manifests {
670 self.reconcile_scaffold_view(repo, manifest)?;
671 let outcome = repo.apply_view_manifest(manifest).map_err(|e| {
672 CliError::Internal(anyhow::anyhow!(
673 "apply manifest for view '{}': {}",
674 manifest.name,
675 e
676 ))
677 })?;
678 outcomes.push(outcome);
679 }
680 Ok(outcomes)
681 }
682
683 /// Clone every remote view not already applied by the primary chain.
684 ///

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