]> _ Git - alire.git/commit
feat: `templates_parser` for file initializations (#1890)
authorAlejandro R Mosteo <amosteo@unizar.es>
Sun, 23 Mar 2025 13:42:31 +0000 (14:42 +0100)
committerGitHub <noreply@github.com>
Sun, 23 Mar 2025 13:42:31 +0000 (14:42 +0100)
commitea80aa44c52f551c401ef10538391542585278fd
tree1f65adfcd850e5b8fb0c7a35b6171d517df494f3
parenta383a24bac535903ac1dc12243a89ad9701eb4a9
feat: `templates_parser` for file initializations (#1890)

* feat: `templates_parser` for file initializations

commit 72eff5c0b408b7fae9006e6b5f07a649fb33a73d
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 23:55:41 2025 +0100

    Self-review

commit 417497746894fc073e732f8b9ee870c7fe3caa1c
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 23:21:52 2025 +0100

    Downgrade templates parser to avoid GNAT>=11

commit 9cece278f5644539833846659cba61909c89d25a
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 23:17:50 2025 +0100

    Hash to avoid arbitrary regeneration

commit bd240607edc6de98a1402ffb2368236e55e48474
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 23:06:53 2025 +0100

    Tests passing

commit b37e33e93659ed520d75cd54887b0e40d2aa1666
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 14:45:27 2025 +0100

    update init to use templates

commit ffd90a009adc636884126c2702edccaa02dd96dd
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 23:15:35 2025 +0100

    Proof of concept working

commit 95514205091938a83a6c61ed951988f4f2a9b917
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 22:46:06 2025 +0100

    Templated file trees

commit 557e67ec31a2b28b2f1c28bbb99c1f94be5423bf
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 21:15:56 2025 +0100

    Remove custom experiments in main

commit f0c573d599fb4ce9d398f8a6b9f1309c289785ea
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 21:12:23 2025 +0100

    Write file with templating

commit 947d1db4467458955f79516207895104c13af42c
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 20:12:23 2025 +0100

    Embedded resource writing (no templating)

commit 5e533d5860066f80a5949815b43c726457757b9d
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 11:30:06 2025 +0100

    Template registration

commit fc19c099ce40600457ac48b91e7c9de4af694df1
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 10:55:06 2025 +0100

    embedder script

commit 90d0778662e51d9153a2187597c4c4755cc8ddb7
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 10:32:14 2025 +0100

    Sample binary crate

commit ce9ef501e92df5da5d9c89b668fa472555e820a8
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Nov 10 19:00:53 2024 +0100

    wip: on track to 1st prototype

commit 1e52e5803d4363428ed6c445ee3d4d9f40647c0a
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Oct 27 20:05:57 2024 +0100

    WIP: experimenting with embedded resources

* Fix tests

* Fix compilation with `alr build`

* Fix tags initialization

* Self-review

* Remove useless template timestamp
49 files changed:
.gitmodules
alire.gpr
alire.toml
alire_common.gpr
alr_env.gpr
deps/gnatcoll-slim
deps/templates-parser [new submodule]
src/alire/alire-directories.adb
src/alire/alire-directories.ads
src/alire/alire-os_lib.adb
src/alire/alire-os_lib.ads
src/alire/alire-templates-builtins.ads [new file with mode: 0644]
src/alire/alire-templates.adb [new file with mode: 0644]
src/alire/alire-templates.ads [new file with mode: 0644]
src/alire/alire-toml_adapters.adb
src/alire/alire-toml_adapters.ads
src/alire/alire-utils-text_files.adb
src/alire/alire-utils-text_files.ads
src/alire/alire-version.ads
src/alire/alire_early_elaboration.adb
src/alr/alr-commands-init.adb
src/templates/r-crate_bin_alire_toml.ads [new file with mode: 0644]
src/templates/r-crate_bin_name_gpr.ads [new file with mode: 0644]
src/templates/r-crate_bin_src_name_adb.ads [new file with mode: 0644]
src/templates/r-crate_common_gitignore_hidden.ads [new file with mode: 0644]
src/templates/r-crate_lib_alire_toml.ads [new file with mode: 0644]
src/templates/r-crate_lib_name_gpr.ads [new file with mode: 0644]
src/templates/r-crate_lib_src_name_ads.ads [new file with mode: 0644]
src/templates/r-crate_test_tests_alire_toml.ads [new file with mode: 0644]
src/templates/r-crate_test_tests_common_name_tests_ads.ads [new file with mode: 0644]
src/templates/r-crate_test_tests_crate_test_tests_gpr.ads [new file with mode: 0644]
src/templates/r-crate_test_tests_src_name_testsxexample_test_adb.ads [new file with mode: 0644]
src/templates/r.adb [new file with mode: 0644]
src/templates/r.ads [new file with mode: 0644]
support/embedder/.gitignore [new file with mode: 0644]
support/embedder/embedder.sh [new file with mode: 0755]
support/embedder/templates.hash [new file with mode: 0644]
templates/crate_bin/alire.toml [new file with mode: 0644]
templates/crate_bin/name.gpr [new file with mode: 0644]
templates/crate_bin/src/name.adb [new file with mode: 0644]
templates/crate_common/gitignore.hidden [new file with mode: 0644]
templates/crate_lib/alire.toml [new file with mode: 0644]
templates/crate_lib/name.gpr [new file with mode: 0644]
templates/crate_lib/src/name.ads [new file with mode: 0644]
templates/crate_test/tests/alire.toml [new file with mode: 0644]
templates/crate_test/tests/common/name_tests.ads [new file with mode: 0644]
templates/crate_test/tests/crate_test_tests.gpr [new file with mode: 0644]
templates/crate_test/tests/src/name_tests-example_test.adb [new file with mode: 0644]
testsuite/tests/workflows/init-with-pin/test.py