Skip to content

Commit

Permalink
Remove [action] in [alias] from manual (#2860)
Browse files Browse the repository at this point in the history
Remove [action] in [alias] from manual
  • Loading branch information
rgrinberg authored Nov 6, 2019
2 parents d4bf526 + b4b4a51 commit 2f22930
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions doc/dune-files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,9 @@ The syntax is as follows:
``<optional-fields>`` are:

- ``<action>``, an action to run when constructing the alias. See the
:ref:`user-actions` section for more details.
:ref:`user-actions` section for more details. Note that this is removed in the
2.0 version of the dune language. Users should port their code to use the
``rule`` stanza with the ``alias`` field instead.

- ``(package <name>)`` indicates that this alias stanza is part of package
``<name>`` and should be filtered out if ``<name>`` is filtered out from the
Expand Down Expand Up @@ -1195,8 +1197,8 @@ For instance:
(rule (with-stdout-to dune.inc.gen (run ./gen-dune.exe)))
(alias
(name runtest)
(rule
(alias runtest)
(action (diff dune.inc dune.inc.gen)))
With this dune file, running dune as follow will replace the
Expand Down
4 changes: 2 additions & 2 deletions doc/tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ running your testsuite, simply add this to a dune file:
.. code:: scheme
(alias
(name runtest)
(rule
(alias runtest)
(action (run ./tests.exe)))
Hence to define an a test a pair of alias and executable stanzas are required.
Expand Down

0 comments on commit 2f22930

Please sign in to comment.