Skip to main content

remove_block_from_file

Function remove_block_from_file 

Source
pub fn remove_block_from_file(
    path: &Path,
    markers: &BlockMarkers,
) -> Result<BlockRemoveResult>
Expand description

Convenience: remove a managed block from a config file.

Returns NotPresent if the file doesn’t exist or doesn’t contain the block.