workspaced.com.dub

Undocumented in source.

Members

Enums

ErrorType
enum ErrorType

Functions

archType
string archType()

Returns the current selected arch type

archTypes
string[] archTypes()

List all possible arch types for current set compiler

build
void build(AsyncCallback cb)

Asynchroniously builds the project WITHOUT OUTPUT. This is intended for linting code and showing build errors quickly inside the IDE.

buildType
string buildType()

Returns the current selected build type

buildTypes
string[] buildTypes()

Lists all build types defined in the package description AND the predefined ones from dub ("plain", "debug", "release", "release-debug", "release-nobounds", "unittest", "docs", "ddox", "profile", "profile-gc", "cov", "unittest-cov")

compiler
string compiler()

Returns the current selected compiler

configuration
string configuration()

Gets the current selected configuration

configurations
string[] configurations()

Lists all configurations defined in the package description

dependencies
auto dependencies()

Lists all dependencies

imports
string[] imports()

Lists all import paths

name
string name()

Returns the project name

path
auto path()

Returns the project path

setArchType
bool setArchType(JSONValue request)

Selects a new arch type and updates the import paths accordingly

setBuildType
bool setBuildType(JSONValue request)

Selects a new build type and updates the import paths accordingly

setCompiler
bool setCompiler(string compiler)

Selects a new compiler for building

setConfiguration
bool setConfiguration(string configuration)

Selects a new configuration and updates the import paths accordingly

startup
void startup(string dir, bool registerImportProvider, bool registerStringImportProvider)

Load function for dub. Call with {"cmd": "load", "components": ["dub"]} This will start dub and load all import paths. All dub methods are used with "cmd": "dub" Note: This will block any incoming requests while loading.

stop
void stop()

Stops dub when called.

stringImports
string[] stringImports()

Lists all string import paths

update
void update(AsyncCallback callback)

Reloads the dub.json or dub.sdl file from the cwd

updateImportPaths
bool updateImportPaths(bool restartDub)
Undocumented in source. Be warned that the author may not have intended to support it.
upgrade
void upgrade()

Calls dub upgrade

Meta