(sh: &Shell, cimage: &str)
| 32 | } |
| 33 | |
| 34 | fn image_digest(sh: &Shell, cimage: &str) -> Result<String> { |
| 35 | let key = "{{ .Digest }}"; |
| 36 | let r = cmd!(sh, "podman inspect --type image --format {key} {cimage}").read()?; |
| 37 | Ok(r) |
| 38 | } |
| 39 | |
| 40 | fn builder_from_image(sh: &Shell, cimage: &str) -> Result<String> { |
| 41 | let mut inspect: serde_json::Value = |