fn generate( from: &Path, to: &Path, transform: &impl Fn(&str) -> Cow<'_, str>, check: bool, verbose: bool, )