MCPcopy Create free account
hub / github.com/bootc-dev/bootc / tar_export

Function tar_export

crates/ostree-ext/src/cli.rs:593–601  ·  view source on GitHub ↗

Export a tar archive containing an ostree commit.

(opts: &ExportOpts)

Source from the content-addressed store, hash-verified

591
592/// Export a tar archive containing an ostree commit.
593fn tar_export(opts: &ExportOpts) -> Result<()> {
594 let repo = parse_repo(&opts.repo)?;
595 #[allow(clippy::needless_update)]
596 let subopts = crate::tar::ExportOptions {
597 ..Default::default()
598 };
599 crate::tar::export_commit(&repo, opts.rev.as_str(), std::io::stdout(), Some(subopts))?;
600 Ok(())
601}
602
603/// Render an import progress notification as a string.
604pub fn layer_progress_format(p: &ImportProgress) -> String {

Callers 1

run_from_optFunction · 0.85

Calls 2

parse_repoFunction · 0.85
export_commitFunction · 0.85

Tested by

no test coverage detected