apigear-io / cli

The ApiGear client as go project
https://apigear.io
MIT License
1 stars 2 forks source link

report if a preserve file is changed on disk and offer a diff view #125

Open jryannel opened 6 months ago

jryannel commented 6 months ago

A preserve file is not overwritten but edited by the user. But due to changes in the API model the user would like to update the edited document for these changes. For this report that these files have changed on disk and offer a (editable) diff viewer.

If a file name changes, we can not track if an old file existed. We either write a file registry in each folder or inside an output folder to list all written files, which can be safely purged or ensure we only use e.g. gen folders which can be safely purged.