Open mxmehl opened 2 years ago
My personal expectation was that reuse
would look in...
.reuse/templates/
folder.reuse/templates/
folder (allowing for organization grouped working directories to share configs)~/.reuse/templates/
(allowing use by me across all my projects)It looks like appdirs could provide for the third option.
Currently, it's only possible to refer to custom templates for
addheader
using templates that are within the project's.reuse/templates
folder. See the current documentation here.We want to make it possible to also load templates from other, more global places.
This could be:
~/.config/reuse/templates/
, also referred to then asreuse addheader --template="myglobaltemplate"
. To support different operating systems, the appdirs library could be used.reuse addheader --template="/my/reuse/templates"
orreuse addheader --template="~/../templates"
--template="mytemplate"
), that the tool should first look for.reuse/templates/mytemplate.jinja2
and only if nothing is found inmytemplate
(so a relative path on the same level).