pub fn write_to_file_or_println(
    maybe_file: Option<PathBuf>,
    content: &str
) -> Result<(), Error>