Up.
This commit is contained in:
parent
5700a78e7e
commit
8d020ce8f9
@ -1,23 +1,19 @@
|
|||||||
{{- $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 " }}
|
||||||
|
|
||||||
{{- $mbsyncAccountNumber = $mbsyncAccountNumber | int -}}
|
{{- $mbsyncAccountNumber = $mbsyncAccountNumber | int -}}
|
||||||
|
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
email = {{ $email | quote }}
|
email = {{ $email | quote }}
|
||||||
mbsyncAccountNumber = {{ $mbsyncAccountNumber }}
|
|
||||||
|
|
||||||
{{- if gt $mbsyncAccountNumber 0 -}}
|
{{- if gt $mbsyncAccountNumber 0 -}}
|
||||||
{{- range $i, $e := until $mbsyncAccountNumber -}}
|
{{- range $i, $e := until $mbsyncAccountNumber -}}
|
||||||
{{ $mbsyncAccountName := promptString "MbSync account name " }}
|
{{ $mbsyncAccountName := promptString "MbSync account name " }}
|
||||||
{{ $mbsyncAccountMail := promptString "MbSync account mail " }}
|
{{ $mbsyncAccountMail := promptString "MbSync account mail " }}
|
||||||
{{ $mbsyncAccountUser := promptString "MbSync account user " }}
|
{{ $mbsyncAccountUser := promptString "MbSync account user " }}
|
||||||
{{ $mbsyncAccountHost := promptString "MbSync account host " }}
|
{{ $mbsyncAccountHost := promptString "MbSync account host " }}
|
||||||
[[data.mbsync]]
|
[[data.mbsync]]
|
||||||
name = {{ $mbsyncAccountName | quote }}
|
name = {{ $mbsyncAccountName | quote }}
|
||||||
mail = {{ $mbsyncAccountMail | quote }}
|
mail = {{ $mbsyncAccountMail | quote }}
|
||||||
user = {{ $mbsyncAccountUser | quote }}
|
user = {{ $mbsyncAccountUser | quote }}
|
||||||
host = {{ $mbsyncAccountHost | quote }}
|
host = {{ $mbsyncAccountHost | quote }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user