2024-03-04 12:53:17 +00:00
{{- $ email := promptString "Git main email address " ""}}
2024-03-04 13:00:25 +00:00
{{- with $ mbsyncAccountNumber := promptInt "How many mbsync accounts would you generate " 0 }}{{ $ mbsyncAccountNumber = $ mbsyncAccountNumber | int }}{{ end }}
2024-03-04 12:30:21 +00:00
[data]
email = {{ $ email | quote }}
{{- if gt $ mbsyncAccountNumber 0 -}}
2024-03-04 12:43:43 +00:00
{{- range $i, $e := until $ mbsyncAccountNumber -}}
{{ $ mbsyncAccountName := promptString "MbSync account name " }}
{{ $ mbsyncAccountMail := promptString "MbSync account mail " }}
{{ $ mbsyncAccountUser := promptString "MbSync account user " }}
{{ $ mbsyncAccountHost := promptString "MbSync account host " }}
2024-03-04 12:30:21 +00:00
[[data.mbsync]]
2024-03-04 12:40:01 +00:00
name = {{ $ mbsyncAccountName | quote }}
mail = {{ $ mbsyncAccountMail | quote }}
user = {{ $ mbsyncAccountUser | quote }}
host = {{ $ mbsyncAccountHost | quote }}
2024-03-04 12:55:46 +00:00
{{- end }}
{{- end }}