Skip to main content

save

Function save 

Source
pub fn save(
    root: &Path,
    orchestration: Orchestration,
    vault: BTreeMap<String, String>,
) -> Result<OrchestrationSaved, Error>
Expand description

harness.v1.orchestration.save: write an orchestration into our own folder.

An existing root is loaded first: its io bookkeeping is what tells the encoder which artifacts are unchanged, so a save of an unmodified orchestration leaves every byte alone. vault is merged into the loaded one — a caller that sends no secrets keeps the home’s own .env.