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

Function edit

crates/lib/src/cli.rs:1618–1628  ·  view source on GitHub ↗
(opts: EditOpts)

Source from the content-addressed store, hash-verified

1616/// Implementation of the `bootc edit` CLI command.
1617#[context("Editing spec")]
1618async fn edit(opts: EditOpts) -> Result<()> {
1619 let storage = &get_storage().await?;
1620 match storage.kind()? {
1621 BootedStorageKind::Ostree(booted_ostree) => {
1622 edit_ostree(opts, storage, &booted_ostree).await
1623 }
1624 BootedStorageKind::Composefs(_) => {
1625 anyhow::bail!("Edit is not yet supported for composefs backend")
1626 }
1627 }
1628}
1629
1630/// Implementation of `bootc usroverlay`
1631async fn usroverlay(access_mode: FilesystemOverlayAccessMode) -> Result<()> {

Callers 1

run_from_optFunction · 0.85

Calls 3

get_storageFunction · 0.85
edit_ostreeFunction · 0.85
kindMethod · 0.45

Tested by

no test coverage detected