Added a getPackageNames function to the PackageSupplier interface, and an implementation for the RegistryPackageSupplier. Currently, FileSystemPackageSupplier.getPackageNames is not implemented.
The catch block of Dub.createEmptyPackage() now uses this and tries to find close matches to what the user entered.
Currently, "close matches" are defined as anything with a levenshteinDistance of <=4.
1 parent 19b62e0 commit 5a93ab440017aa0998c50edda5cabad7c2bffc5f
@grogancolin grogancolin authored on 8 Dec 2014
Showing 2 changed files
View
source/dub/dub.d
View
source/dub/packagesupplier.d