let apply_with_metadata ~metadata_spec wf = begin match metadata_spec with | `Add_tags tgs -> KEDSL.add_tags ~recursive:false wf tgs | `Add_tags_rec tgs -> KEDSL.add_tags ~recursive:true wf tgs end; wf