Ability to define safe/unsafe modes and force to ignore _tasks
divad1196 opened this issue · comments
Actual Situation
If we define _tasks
, the end user will need to use --UNSAFE/--trust
to generate the project from the template.
In some situation, the _tasks
commands are just convenience.
More precisely, in my case:
_tasks:
- "git init -b main && git add -A && git commit -m 'Initial commit'"
- "pre-commit install"
Desired Situation
I would like the end-user to be able to use the template without running any unsafe feature.
Proposed solution
The end-user could be able to use a flag (e.g. --no-script
) to not run any unsafe feature but still create the project.
From the template's creator side, an additional feature would be to mark the _tasks
as required/optional
to control if the end-user is allowed to copy the project without the tasks.