{{- $email := promptStringOnce . "email" "Email address " }} {{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }} {{- $mbsyncAccountNumber = $mbsyncAccountNumber | int -}} [data] email = {{ $email | quote }} {{- if gt $mbsyncAccountNumber 0 -}} {{- range $i, $e := until $mbsyncAccountNumber -}} [[data.mbsync]] name = {{ promptString "MbSync account name " }} email = "accountEmail" username = "accountUserName" server = "accountServer" {{- end -}} {{- end -}}