(opts: &RollbackOpts)
| 1547 | /// Implementation of the `bootc rollback` CLI command. |
| 1548 | #[context("Rollback")] |
| 1549 | async fn rollback(opts: &RollbackOpts) -> Result<()> { |
| 1550 | let storage = &get_storage().await?; |
| 1551 | match storage.kind()? { |
| 1552 | BootedStorageKind::Ostree(booted_ostree) => { |
| 1553 | rollback_ostree(opts, storage, &booted_ostree).await |
| 1554 | } |
| 1555 | BootedStorageKind::Composefs(booted_cfs) => composefs_rollback(storage, &booted_cfs).await, |
| 1556 | } |
| 1557 | } |
| 1558 | |
| 1559 | /// Implementation of the `bootc edit` CLI command for ostree backend. |
| 1560 | #[context("Editing spec (ostree)")] |
no test coverage detected