-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Config defaults for dune-project (#10835)
* support for authors default from config Signed-off-by: teague hansen <thanse23@asu.edu>
- Loading branch information
Showing
13 changed files
with
251 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Add support for specifying default values of the `authors`, `maintainers`, and | ||
`license` stanzas of the `dune-project` file via the dune config file. Default | ||
values are set using the `(project_defaults)` stanza (#10835, @H-ANSEN) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
project_defaults | ||
---------------- | ||
|
||
.. versionadded:: 3.17 | ||
|
||
Specify default values for stanzas ``authors``, ``maintainers``, and ``license`` | ||
of the :doc:`../dune-project/index` file when initializing a project with | ||
``dune init proj``. The format of the 'project_defaults' stanza is as follows: | ||
|
||
.. code:: dune | ||
(project_defaults | ||
<optional-fields>) | ||
``<optional-fields>`` are: | ||
|
||
.. describe:: (authors <string(s)>) | ||
|
||
Specify authors. | ||
|
||
Example: | ||
|
||
.. code:: dune | ||
(project_defaults | ||
(authors | ||
"Jane Doe <jane.doe@example.com>" | ||
"John Doe <john.doe@example.com>")) | ||
.. describe:: (maintainers <string(s)>) | ||
|
||
Specify maintainers. | ||
|
||
Example: | ||
|
||
.. code:: dune | ||
(project_defaults | ||
(maintainers | ||
"Jane Doe <jane.doe@example.com>" | ||
"John Doe <john.doe@example.com>")) | ||
.. describe:: (license <string(s)>) | ||
|
||
Specify license, ideally as an identifier from the `SPDX License List | ||
<https://spdx.org/licenses/>`__. | ||
|
||
Example: | ||
|
||
.. code:: dune | ||
(project_defaults | ||
(license "MIT")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.