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