pub fn new_code( root: &Path, code: &NewCode, ) -> Result<Vec<FileChange>, GenError>
Writes only the sources; sofie gen and sofie check follow, as after any edit. A failure part-way undoes what was written.
sofie gen
sofie check