DUB-DESCRIBE(1) | The D Language Foundation | DUB-DESCRIBE(1) |
NAME
dub-describe - Prints a JSON description of the project and its dependencies
SYNOPSIS
dub describe [<package>[@<version-spec>]] OPTIONS...
DESCRIPTION
Prints a JSON build description for the root package an all of their dependencies in a format similar to a JSON package description file. This is useful mostly for IDEs.
All usual options that are also used for build/run/generate apply.
When --data=VALUE is supplied, specific build settings for a project will be printed instead (by default, formatted for the current compiler).
The --data=VALUE option can be specified multiple times to retrieve several pieces of information at once. A comma-separated list is also acceptable (ex: --data=dflags,libs). The data will be output in the same order requested on the command line.
The accepted values for --data=VALUE are:
main-source-file, dflags, lflags, libs, linker-files, source-files, versions, debug-versions, import-paths, string-import-paths, import-files, options
The following are also accepted by --data if --data-list is used:
target-type, target-path, target-name, working-directory, copy-files, string-import-files, pre-generate-commands, post-generate-commands, pre-build-commands, post-build-commands, pre-run-commands, post-run-commands, requirements
OPTIONS
-b, --build=VALUE
debug, plain, release, release-debug, release-nobounds, unittest, profile, profile-gc, docs, ddox, cov, cov-ctfe, unittest-cov, unittest-cov-ctfe, syntax and custom types
-c, --config=VALUE
--override-config=VALUE
--compiler=VALUE
dmd, gdc, ldc, gdmd, ldmd
-a, --arch=VALUE
-d, --debug=VALUE
--d-version=VALUE
--nodeps
--build-mode=VALUE
separate (default), allAtOnce, singleFile
--single
--force-remove
--filter-versions
--import-paths
--string-import-paths
--data=VALUE
--data-list
--data-0
COMMON OPTIONS
See dub(1)
EXIT STATUS
- 0
- DUB succeeded
- 1
- usage errors, unknown command line flags
- 2
- package not found, package failed to load, miscellaneous error
FILES
dub.sdl, dub.json
AUTHOR
Copyright (c) 1999-2024 by The D Language Foundation
ONLINE DOCUMENTATION
SEE ALSO
2024-07-07 | The D Language Foundation |