1
0
chezmoi/home/.chezmoi.yaml.tmpl
2024-03-04 13:09:24 +01:00

23 lines
924 B
Cheetah

{{- $email := promptStringOnce . "email" "Email address " }}
{{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }}
{{- $mbsyncAccountNumber = $mbsyncAccountNumber | int -}}
{{- if gt $mbsyncAccountNumber 0 -}}
{{- range $i, $e := until $mbsyncAccountNumber -}}
{{- $mbsyncAccountName := promptStringOnce . "mbsync.name" "MbSync account name " }}
{{- $mbsyncAccountMail := promptStringOnce . "mbsync.mail" "MbSync account mail " }}
{{- $mbsyncAccountUser := promptStringOnce . "mbsync.user" "MbSync account user " }}
{{- $mbsyncAccountHost := promptStringOnce . "mbsync.host" "MbSync account host " }}
{{- end -}}
{{- end -}}
data:
email: {{ $email | quote }}
mbsyncAccountNumber: {{ $mbsyncAccountNumber }}
mbsync:
- name: "accountName"
email: "accountEmail"
username: "accountUserName"
server: "accountServer"