1
0
This commit is contained in:
Jeff Lance 2024-03-04 16:09:02 +01:00
parent 41455bcfda
commit 9968e850c3
2 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,10 @@ chezmoi:template:missing-key=zero
email = {{ promptString "Git main email address " "" | quote }} email = {{ promptString "Git main email address " "" | quote }}
{{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int }} {{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int }}
{{- if gt $count 0 -}} {{- if gt $count 0 -}}
[[data.mbsync]]
activate = true
{{- range $i, $e := until $count }} {{- range $i, $e := until $count }}
[[data.mbsync]] [[data.mbsync]]
name = {{ promptString "MbSync account name " | quote }} name = {{ promptString "MbSync account name " | quote }}
@ -14,7 +18,7 @@ host = {{ promptString "MbSync account host " | quote }}
{{ else }} {{ else }}
[[data.mbsync]] [[data.mbsync]]
active = {{ $count | quote }} activate = false
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -24,8 +24,8 @@ BufferLimit 100M
# # # #
########################## ##########################
{{ if not .mbsync.count }} {{ if .mbsync.activate }}
{{ range $value := .mbsync }} {{ range $value := .mbsync[1:] }}
# {{ $value.name }} # {{ $value.name }}
#------------------------- #-------------------------