Open soraxas opened 1 year ago
A slight bump on this PR:
are there any more blockers for merging this PR?
I adjusted this PR to target the develop branch. Can tests and updates to the manpage be added?
Hi @TheLocehiliosan ! Man and tests had been added!
@soraxas - I updated the pull request to target the develop branch, but there are conflicts.
Can you rebase your branch to be on top of the develop branch?
@TheLocehiliosan A slight bump on this PR again
What does this PR do?
Allow user to tell
yadm
to create read-only template outputWhat issues does this PR fix or reference?
I always forget that the file I'm editing is an output from
yadm
template :( and loss my editing. (despite already adding a header notice on the top of the file)Config via:
Previous Behavior
yadm
copies permsNew Behavior
yadm
copies perms, and optionally, remove write permsHave [tests][1] been written for this change?
No
Have these commits been [signed with GnuPG][2]?
Yes
P.S. This is a global control.
An alternative solution, that allows per-file controls, is to allow template file to have some extra parameters, e.g.,
my_config.toml##<condition>,template.esh,template.ro=true
but the original semantic of those values were conditions, so I'm not sure if that'd be a good approach