1
0
This commit is contained in:
Jeff Lance 2024-03-04 16:22:30 +01:00
parent 7ae27ecc78
commit a7992a7bc7

View File

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