# vim: ft=bash
export GITLAB_TOKEN='{{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab token"])["stdout"] }}'
export GITLAB_PRIVATE_TOKEN="$GITLAB_TOKEN"
export GITLAB_REGISTRATION_TOKEN='{{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab runner registration token"])["stdout"] }}'
export GITHUB_TOKEN='{{ run(["ph", "show", "--field", "CLI2023 token", "Web Sites/GitHub"])["stdout"] }}'
export GITHUB_OAUTH_TOKEN="$GITHUB_TOKEN"
{% set nc_password = run(["ph", "show", "--field", "Password", "shore.co.il/LDAP"])["stdout"] -%}
export RCLONE_CONFIG_NEXTCLOUD_PASS='{{ run(["rclone", "obscure", nc_password])["stdout"]|trim }}'
export RCLONE_CONFIG_LIBRARY_PASS="$RCLONE_CONFIG_NEXTCLOUD_PASS"