Add --force-remove switch and reimplement PackageManager.remove.
remove() now first checks for untracked files and leaves the package untouched if it finds some and no force_remove is supplied. This means that after the user gets an error concerning untracked files, it's possible to rerun dub with --force-remove to remove the package cleanly. |
---|
|
source/dub/commandline.d |
---|
source/dub/dub.d |
---|
source/dub/packagemanager.d |
---|
source/dub/project.d |
---|