1
0
This commit is contained in:
Jeff Lance 2024-03-04 14:35:01 +01:00
parent ceba0216c8
commit ce451f4ffe

View File

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