yolk::util

Function ensure_file_contains_lines

Source
pub fn ensure_file_contains_lines(
    path: impl AsRef<Path>,
    lines: &[&str],
) -> Result<()>
Expand description

Ensure that a file contains the given lines, appending them if they are missing. If the file does not yet exist, it will be created.