Man page - dub-init(1)
Packages contas this manual
- dub-run(1)
- dub-list-overrides(1)
- dub-upgrade(1)
- dub-list(1)
- dub-clean(1)
- dub-convert(1)
- dub-lint(1)
- dub-add(1)
- dub-clean-caches(1)
- dub-add-path(1)
- dub-describe(1)
- dub-generate(1)
- dub-search(1)
- dub-init(1)
- dub-remove(1)
- dub-add-override(1)
- dub-add-local(1)
- dub-build(1)
- dub(1)
- dub-test(1)
- dub-remove-local(1)
- dub-fetch(1)
- dub-dustmite(1)
- dub-remove-override(1)
- dub-remove-path(1)
apt-get install dub
Manual
| DUB-INIT(1) | The D Language Foundation | DUB-INIT(1) |
NAME
dub-init - Initializes an empty package skeleton
SYNOPSIS
dub init [<directory> [<dependency>...]] OPTIONS... [-- <application arguments...>]
DESCRIPTION
Initializes an empty package of the specified type in the given directory.
By default, the current working directory is used.
Custom templates can be defined by packages by providing a sub-package called "init-exec". No default source files are added in this case.
The "init-exec" sub-package is compiled and executed inside the destination folder after the base project directory has been created.
Free arguments "dub init -t custom -- free args" are passed into the "init-exec" sub-package as app arguments.
OPTIONS
-t, --type=VALUE
minimal - simple "hello world" project (default) vibe.d - minimal HTTP server based on vibe.d deimos - skeleton for C header bindings custom - custom project provided by dub package
-f, --format=VALUE
json (default), sdl
-n, --non-interactive
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-2018 by The D Language Foundation
ONLINE DOCUMENTATION
http://code.dlang.org/docs/commandline
SEE ALSO
dub(1), dub-add(1), dub-convert(1)
| 2018-01-01 | The D Language Foundation |