Initiales the package manager for the vibe application under root.
Initializes DUB with only a single search path
Returns all cached packages as a "packageId" = "version" associative array
cleans all metadata caches
Cleans intermediate/cache files of the given package
Outputs a JSON description of the project, including its dependencies.
Fetches the package matching the dependency and places it in the specified location.
Generate project files for a specified IDE. Any existing project files will be overridden.
Loads the package from the specified path as the main project package.
Loads a specific package as the main project package (can be a sub package)
Loads the package from the current working directory as the main project package.
Removes a given package from the list of present/cached modules. @removeFromApplication: if true, this will also remove an entry in the list of dependencies in the application's dub.json
This will remove a given package with a specified version from the location. It will remove at most one package, unless @param version_ is specified as wildcard "*". @param package_id Package to be removed @param version_ Identifying a version or a wild card. An empty string may be passed into. In this case the package will be removed from the location, if there is only one version retrieved. This will throw an exception, if there are multiple versions retrieved. Note: as wildcard string only RemoveVersionWildcard ("*") is supported. @param location_
Perform cleanup and persist caches to disk
Executes tests on the current project. Throws an exception, if unittests failed.
@see remove(string, string, RemoveLocation)
Returns the name listed in the dub.json of the current application.
Returns the root path (usually the current working directory).
The Dub class helps in getting the applications dependencies up and running. An instance manages one application.