{{- $email := promptStringOnce . "email" "Email address " }} {{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " | int }} {{- if gt $mbsyncAccountNumber 0 }} {{- range $i, $e := until $mbsyncAccountNumber -}} {{- $mbsyncAccountName := promptStringOnce . "mbsync.name" "MbSync account name " }} {{- $mbsyncAccountMail := promptStringOnce . "mbsync.mail" "MbSync account mail " }} {{- $mbsyncAccountUser := promptStringOnce . "mbsync.user" "MbSync account user " }} {{- $mbsyncAccountHost := promptStringOnce . "mbsync.host" "MbSync account host " }} {{- end -}} {{- end -}} data: email: {{ $email | quote }} mbsyncAccountNumber: {{ $mbsyncAccountNumber }} mbsync: - name: "accountName" email: "accountEmail" username: "accountUserName" server: "accountServer"