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

Method apply_manifests

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

674 ///
675 /// Returns one outcome per manifest, in apply order.
676 fn apply_manifests(
677 &self,
678 repo: &mut Repository,
679 manifests: &[ViewManifest],
680 ) -> CliResult<Vec<ManifestApplyOutcome>> {
681 let mut outcomes = Vec::with_capacity(manifests.len());
682 for manifest in manifests {
683 self.reconcile_scaffold_view(repo, manifest)?;
684 let outcome = repo.apply_view_manifest(manifest).map_err(|e| {
685 CliError::Internal(anyhow::anyhow!(
686 "apply manifest for view '{}': {}",
687 manifest.name,
688 e
689 ))
690 })?;
691 outcomes.push(outcome);
692 }
693 Ok(outcomes)
694 }
695
696 /// Clone every remote view not already applied by the primary chain.
697 ///

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