TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
4.91k stars 176 forks source link

Custom default template's directive #452

Open kolya-ay opened 1 year ago

kolya-ay commented 1 year ago

Is your feature request related to a problem? Please describe.

It would be very useful (at least for me) to able to extract in templates some Secret from some Credential Manager a la chezmoi.

E.g. .docker/config.json:

{
    "auths": {
        "registry.gitlab.com": {
            "auth": "{% include_secret "keepassxc" "Folder/Docker_{{ yadm.os }}/AuthAttribute" %}"
        }
    }
}

Describe the solution you'd like

It would be cool to have an ability to hook include_secret adapters (i.e "keepassxc") for different stores, or may be even have an ability to write custom directives (i.e. include_keepassxc) configured in somewhere in $YADM_DIR/config

Describe alternatives you've considered

For sure, this can be accomplished with ESH templates, but it's something that could be in core. That way default templates would cover all my use cases;)

github-actions[bot] commented 1 year ago

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kolya-ay commented 1 year ago

I think still it's worth implementing

github-actions[bot] commented 10 months ago

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

rasa commented 10 months ago

Should issues be closed without review?

github-actions[bot] commented 8 months ago

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.