feat: oci progress bars on launch

This commit is contained in:
Alex Zenla
2024-04-12 12:38:31 +00:00
parent 8d26cd8fb2
commit cb89ac02d1
9 changed files with 216 additions and 46 deletions

View File

@ -14,7 +14,8 @@ fn convert_oci_layer_progress(layer: OciProgressLayer) -> OciProgressEventLayer
OciProgressLayerPhase::Extracted => OciProgressEventLayerPhase::Extracted,
}
.into(),
progress: layer.progress,
value: layer.value,
total: layer.total,
}
}
@ -35,6 +36,7 @@ pub fn convert_oci_progress(oci: OciProgress) -> OciProgressEvent {
.into_values()
.map(convert_oci_layer_progress)
.collect::<Vec<_>>(),
progress: oci.progress,
value: oci.value,
total: oci.total,
}
}