1dune-promote(1)                   Dune Manual                  dune-promote(1)
2
3
4

NAME

6       dune-promote - Promote files from the last run
7

SYNOPSIS

9       dune promote [OPTION]... [FILE]...
10

DESCRIPTION

12       Considering all actions of the form (diff a b) that failed in the last
13       run of dune, dune promote does the following: If a is present in the
14       source tree but b isn't, b is copied over to a in the source tree. The
15       idea behind this is that you might use (diff file.expected
16       file.generated) and then call dune promote to promote the generated
17       file.
18

OPTIONS

20       --build-info
21           Show build information.
22
23       -f, --force
24           Force actions associated to aliases to be re-executed even if their
25           dependencies haven't changed.
26
27       --help[=FMT] (default=auto)
28           Show this help in format FMT. The value FMT must be one of `auto',
29           `pager', `groff' or `plain'. With `auto', the format is `pager` or
30           `plain' whenever the TERM env var is `dumb' or undefined.
31
32       --version
33           Show version information.
34
35       -w, --watch
36           Instead of terminating build after completion, wait continuously
37           for file changes.
38

COMMON OPTIONS

40       These options are common to all commands.
41
42       --always-show-command-line
43           Always show the full command lines of programs executed by dune
44
45       --auto-promote
46           Automatically promote files. This is similar to running dune
47           promote after the build.
48
49       --build-dir=FILE (absent DUNE_BUILD_DIR env)
50           Specified build directory. _build if unspecified
51
52       --config-file=FILE
53           Load this configuration file instead of the default one.
54
55       --debug-backtraces
56           Always print exception backtraces.
57
58       --debug-dependency-path
59           In case of error, print the dependency path from the targets on the
60           command line to the rule that failed.
61
62       --debug-findlib
63           Debug the findlib sub-system.
64
65       --default-target=TARGET (absent=@@default)
66           Set the default target that when none is specified to dune build.
67
68       --dev
69           Same as --profile dev
70
71       --diff-command=VAL
72           Shell command to use to diff files. Use - to disable printing the
73           diff.
74
75       --display=MODE
76           Control the display mode of Dune. See dune-config(5) for more
77           details.
78
79       --ignore-promoted-rules
80           Ignore rules with (mode promote), except ones with (only ...). The
81           variable %{ignoring_promoted_rules} in dune files reflects whether
82           this option was passed or not.
83
84       -j JOBS
85           Run no more than JOBS commands simultaneously.
86
87       --no-buffer
88           Do not buffer the output of commands executed by dune. By default
89           dune buffers the output of subcommands, in order to prevent
90           interleaving when multiple commands are executed in parallel.
91           However, this can be an issue when debugging long running tests.
92           With --no-buffer, commands have direct access to the terminal. Note
93           that as a result their output won't be captured in the log file.
94           You should use this option in conjunction with -j 1, to avoid
95           interleaving. Additionally you should use --verbose as well, to
96           make sure that commands are printed before they are being executed.
97
98       --no-config
99           Do not load the configuration file
100
101       --no-print-directory
102           Suppress "Entering directory" messages
103
104       --only-packages=PACKAGES
105           Ignore stanzas referring to a package that is not in PACKAGES.
106           PACKAGES is a comma-separated list of package names. Note that this
107           has the same effect as deleting the relevant stanzas from jbuild
108           files. It is mostly meant for releases. During development, it is
109           likely that what you want instead is to build a particular
110           <package>.install target.
111
112       -p PACKAGES, --for-release-of-packages=PACKAGES
113           Shorthand for --root . --only-packages PACKAGE
114           --ignore-promoted-rules --no-config --profile release. You must use
115           this option in your <package>.opam files, in order to build only
116           what's necessary when your project contains multiple packages as
117           well as getting reproducible builds.
118
119       --profile=VAL (absent DUNE_PROFILE env)
120           Select the build profile, for instance dev or release. The default
121           is dev.
122
123       --root=DIR
124           Use this directory as workspace root instead of guessing it. Note
125           that this option doesn't change the interpretation of targets given
126           on the command line. It is only intended for scripts.
127
128       --store-orig-source-dir (absent DUNE_STORE_ORIG_SOURCE_DIR env)
129           Store original source location in dune-package metadata
130
131       --trace-file=FILE
132           Output trace data in catapult format (compatible with
133           chrome://tracing)
134
135       --verbose
136           Same as --display verbose
137
138       --workspace=FILE (absent DUNE_WORKSPACE env)
139           Use this specific workspace file instead of looking it up.
140
141       -x VAL
142           Cross-compile using this toolchain.
143

MORE HELP

145       Use `dune COMMAND --help' for help on a single command.
146

ENVIRONMENT

148       These environment variables affect the execution of promote:
149
150       DUNE_BUILD_DIR
151           Specified build directory. _build if unspecified
152
153       DUNE_PROFILE
154           Build profile. dev if unspecified or release if -p is set.
155
156       DUNE_STORE_ORIG_SOURCE_DIR
157           Store original source location in dune-package metadata
158
159       DUNE_WORKSPACE
160           Use this specific workspace file instead of looking it up.
161

BUGS

163       Check bug reports at https://github.com/ocaml/dune/issues
164
165
166
167Dune n/a                                                       dune-promote(1)
Impressum