1
0
This commit is contained in:
Jeff Lance 2024-03-04 12:58:06 +01:00
parent fa9318538d
commit a0ef50fdba

View File

@ -1,6 +1,15 @@
{{- $email := promptStringOnce . "email" "Email address " }} {{- $email := promptStringOnce . "email" "Email address " }}
{{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }} {{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }}
{{- if $mbsyncAccountNumber gt 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: data:
email: {{ $email | quote }} email: {{ $email | quote }}
mbsyncAccountNumber: {{ $mbsyncAccountNumber }} mbsyncAccountNumber: {{ $mbsyncAccountNumber }}