openapi-generators/openapi-python-client

Sharp edge: --overwrite with --output-path

zabullet opened this issue · 1 comments

It's not a bug, but a bit of a sharp edge.

The mechanism employed by --overwrite is to essentially rm -rf *

So for instance in you're in your repo and execute

--overwrite --output-path ./

It very aggressively removes everything.

I agree this is an issue, because it is useful to keep the generated client in git, and removing the directory also deletes the .git directory. Not something insurmountable, but an annoyance for sure.