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

Function rollback

crates/lib/src/cli.rs:1549–1557  ·  view source on GitHub ↗
(opts: &RollbackOpts)

Source from the content-addressed store, hash-verified

1547/// Implementation of the `bootc rollback` CLI command.
1548#[context("Rollback")]
1549async 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)")]

Callers 3

rollback_ostreeFunction · 0.70
edit_ostreeFunction · 0.70
run_from_optFunction · 0.70

Calls 4

get_storageFunction · 0.85
rollback_ostreeFunction · 0.85
composefs_rollbackFunction · 0.85
kindMethod · 0.45

Tested by

no test coverage detected