Up.
This commit is contained in:
parent
f68b1b5541
commit
d4ed361c41
@ -1,11 +1,10 @@
|
|||||||
chezmoi:template:missing-key=zero
|
chezmoi:template:missing-key=zero
|
||||||
[data]
|
[data]
|
||||||
email = {{ promptString "Git main email address " "" | quote }}
|
email = {{ promptString "Git main email address " "" | quote }}
|
||||||
{{- with promptInt "How many mbsync accounts would you generate " -}}{{- $count := . | int }}
|
{{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int }}
|
||||||
{{- if gt $count 0 -}}
|
{{- if gt $count 0 -}}
|
||||||
{{- range $i, $e := until $count }}
|
{{- range $i, $e := until $count }}
|
||||||
[[data.mbsync]]
|
[[data.mbsync]]
|
||||||
active = true
|
|
||||||
name = {{ promptString "MbSync account name " | quote }}
|
name = {{ promptString "MbSync account name " | quote }}
|
||||||
mail = {{ promptString "MbSync account mail " | quote }}
|
mail = {{ promptString "MbSync account mail " | quote }}
|
||||||
user = {{ promptString "MbSync account user " | quote }}
|
user = {{ promptString "MbSync account user " | quote }}
|
||||||
@ -15,6 +14,6 @@ host = {{ promptString "MbSync account host " | quote }}
|
|||||||
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
[[data.mbsync]]
|
[[data.mbsync]]
|
||||||
active = false
|
active = {{ $count }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user