mold 1.1.0 (#1498)
This commit is contained in:
@@ -0,0 +1,99 @@
|
|||||||
|
name = "mold"
|
||||||
|
version = "1.1.0"
|
||||||
|
tags = ["template", "template-engine", "template-repo"]
|
||||||
|
|
||||||
|
description = "Meta-variable Operations for Lean Development (cli)"
|
||||||
|
long-description = '''
|
||||||
|
[](https://alire.ada.dev/crates/mold.html)
|
||||||
|
[](https://alire-crate-ci.ada.dev/crates/mold.html)
|
||||||
|

|
||||||
|
[](https://codecov.io/gh/rocher/mold)
|
||||||
|
[](https://github.com/rocher/mold/releases/latest)
|
||||||
|
[](https://github.com/rocher/mold/blob/master/LICENSE)
|
||||||
|
|
||||||
|
## Welcome to **Mold (cli)**
|
||||||
|
|
||||||
|
> **MOLD**: *Meta-variable Operations for Lean Development*
|
||||||
|
|
||||||
|
Mold is a Template Processor, or Template Engine, to work with repository
|
||||||
|
templates. The main motivation of Mold is to have repositories in GitHub used
|
||||||
|
as template repositories to create new, customized repositories for other
|
||||||
|
users.
|
||||||
|
|
||||||
|
Main features supported in Mold include
|
||||||
|
|
||||||
|
* variable replacement in mold files (*.mold)
|
||||||
|
|
||||||
|
* for a given directory, variable replacement recursively for all mold files
|
||||||
|
in all subdirectories
|
||||||
|
|
||||||
|
* variable replacement in file names
|
||||||
|
|
||||||
|
* inclusion of other templates
|
||||||
|
|
||||||
|
* definition of variables with a simple TOML file
|
||||||
|
|
||||||
|
* predefined and custom text filters to easy text transformations
|
||||||
|
|
||||||
|
* predefined variables to use in templates
|
||||||
|
|
||||||
|
* support for optional and mandatory variables
|
||||||
|
|
||||||
|
* support for custom filter and variables
|
||||||
|
|
||||||
|
Variable replacement can be specified as *normal*, *optional* or *mandatory*.
|
||||||
|
For example, the variable `foo = "bar"` can be specified with `{{foo}}`,
|
||||||
|
`{{?foo}}` (optional) or `{{#foo}}` (mandatory). The difference is the handling
|
||||||
|
of errors when an undefined variable is encountered.
|
||||||
|
|
||||||
|
All mold files must end with the extension `.mold`, for example
|
||||||
|
`README.md.mold`. Destination files (with variables replaced) have the same
|
||||||
|
name without the mold extension: `README.md`. This simplifies the work done in
|
||||||
|
large subdirectories with few templates.
|
||||||
|
|
||||||
|
This crate contains the Ada library and unit tests. For a CLI tool, please
|
||||||
|
take a look at the crate `mold`.
|
||||||
|
|
||||||
|
## Reference Guide
|
||||||
|
|
||||||
|
Please visit [Mold documentation](https://rocher.github.io/mold) for more
|
||||||
|
information.
|
||||||
|
|
||||||
|
---
|
||||||
|
## License
|
||||||
|
MIT (c) 2023-2025 Francesc Rocher
|
||||||
|
'''
|
||||||
|
|
||||||
|
authors = ["Francesc Rocher"]
|
||||||
|
website = "https://rocher.github.io/mold"
|
||||||
|
maintainers = ["Francesc Rocher <francesc.rocher@gmail.com>"]
|
||||||
|
maintainers-logins = ["rocher"]
|
||||||
|
|
||||||
|
licenses = "MIT"
|
||||||
|
|
||||||
|
executables = ["mold"]
|
||||||
|
|
||||||
|
[build-profiles]
|
||||||
|
"mold" = "release"
|
||||||
|
# development only:
|
||||||
|
# "mold" = "development"
|
||||||
|
# "mold_lib" = "development"
|
||||||
|
|
||||||
|
[build-switches."*"]
|
||||||
|
ada_version = ["-gnat2022", "-gnatX"]
|
||||||
|
optimization = ["-O2", "-gnatn"]
|
||||||
|
|
||||||
|
[[depends-on]]
|
||||||
|
clic = "~0.3.0"
|
||||||
|
gnat = ">=2021 | (>=12 & <2000)"
|
||||||
|
mold_lib = "^2.3.0"
|
||||||
|
simple_logging = "^1.2.0"
|
||||||
|
|
||||||
|
# development only:
|
||||||
|
# [[pins]]
|
||||||
|
# mold_lib = { path = "../mold_lib" }
|
||||||
|
|
||||||
|
[origin]
|
||||||
|
commit = "ad52e65be4efb83753f6ad64e22fe332e5ed1eb2"
|
||||||
|
url = "git+https://github.com/rocher/mold.git"
|
||||||
|
|
||||||
Reference in New Issue
Block a user