entangled / entangled.py

Python port of Entangled
Apache License 2.0
33 stars 7 forks source link

Implement `entangled new` command #11

Closed jhidding closed 11 months ago

jhidding commented 1 year ago

Use copier to access project templates. Templates should be registered in a separate repo entangled/template-registry.

There should be a list of vetted templates inside entangled (the ones that are listed by --list-templates). These should contain the following info:

not now:

  • [ ] design and create entangled/template-registry repo
    • couples to
    • cache in ${XDG_CONFIG_HOME}/entangled/template

It may be easiest to have the registry act as a Python package installed straight from github.

Another package that also does updating of templates: copier.

jhidding commented 1 year ago

First cookiecutter template is available here: https://github.com/entangled/template-mkdocs

OleMussmann commented 11 months ago

What are the pre-requisites in the template list? Do you want to have "unsafe=True" by default for copier?

jhidding commented 11 months ago

List of software that should be available. For our own 'vetted' templates its ok to have unsafe=True, for others I think better not. May need to add a --trust flag to the new command for that.

What are the pre-requisites in the template list? Do you want to have "unsafe=True" by default for copier?

egpbos commented 11 months ago

Bit late to the party, but: for the vetted templates, wouldn't you also want to record the vetted versions (e.g. commit hash or release tag)? Or do you vet only templates that you are sure will never be maliciously changed?

jhidding commented 11 months ago

That's a good point! That way we can have community participation with a bit of control.