Skip to main content

handle_save

Function handle_save 

Source
pub async fn handle_save(dir: &Path) -> Result<i32>
Expand description

Save all harmont-local/* images to a cache directory as tar files, write a manifest, and prune stale tars that no longer correspond to any known image.

Prints the manifest’s content hash to stdout so CI runners (e.g. GitHub Actions) can capture it for use as a cache key.

§Errors

Returns an error if the Docker daemon is unreachable, an image export fails, or any filesystem operation on dir fails.