1
0
This commit is contained in:
Jeff Lance 2024-03-04 14:14:10 +01:00
parent 6f0f40f76f
commit 5cd35b386d

View File

@ -1,14 +1,14 @@
{{- $email := promptString "Git main email address " ""}} {{- $email := promptString "Git main email address " "" -}}
{{- with promptInt "How many mbsync accounts would you generate " 0 }}{{ $mbsyncAccountNumber := . | int }} {{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $mbsyncAccountNumber := . | int -}}
[data] [data]
email = {{ $email | quote }} email = {{ $email | quote }}
{{ if gt $mbsyncAccountNumber 0 }} {{- if gt $mbsyncAccountNumber 0 -}}
{{ range $i, $e := until $mbsyncAccountNumber }} {{- range $i, $e := until $mbsyncAccountNumber }}
[[data.mbsync]] [[data.mbsync]]
name = {{ promptString "MbSync account name " }} name = {{ promptString "MbSync account name " | quote }}
mail = {{ promptString "MbSync account mail " }} mail = {{ promptString "MbSync account mail " | quote }}
user = {{ promptString "MbSync account user " }} user = {{ promptString "MbSync account user " | quote }}
host = {{ promptString "MbSync account host " | quote }} host = {{ promptString "MbSync account host " | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}