GetDKAN / ddev-dkan

DDEV add-on for DKAN.
https://getdkan.github.io/ddev-dkan/
Apache License 2.0
3 stars 2 forks source link

dkan-init: Warn the user if they're about to lose work #9

Closed paul-m closed 1 year ago

paul-m commented 2 years ago

Maybe you're a user and you type dkan-init even though you meant to type something else. This leads to destroying the project and re-initializing it.

Let's add a check for existing work in the directory which causes the command to stop. We also add a way to force it to happen, such as --force.