1
0
chezmoi/home/.chezmoi.yaml.tmpl

21 lines
879 B
Cheetah
Raw Normal View History

2024-03-04 11:58:06 +00:00
{{- $email := promptStringOnce . "email" "Email address " }}
2024-03-04 12:07:44 +00:00
{{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }}
2024-03-04 11:58:06 +00:00
2024-03-04 12:07:44 +00:00
{{- if gt {{- $mbsyncAccountNumber | int -}} 0 -}}
2024-03-04 11:58:06 +00:00
{{- 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 -}}
2024-03-04 11:46:01 +00:00
2024-03-03 22:00:32 +00:00
data:
2024-03-03 21:59:30 +00:00
email: {{ $email | quote }}
2024-03-04 11:46:01 +00:00
mbsyncAccountNumber: {{ $mbsyncAccountNumber }}
2024-03-03 22:06:26 +00:00
mbsync:
2024-03-03 22:23:40 +00:00
- name: "accountName"
email: "accountEmail"
username: "accountUserName"
server: "accountServer"