32 lines
683 B
Cheetah
32 lines
683 B
Cheetah
{{- $email := "" -}}
|
|
{{- if hasKey . "email" -}}
|
|
{{- $email = .email -}}
|
|
{{- else -}}
|
|
{{- $email = promptString "email" -}}
|
|
{{ end }}
|
|
|
|
{{- $gitUser := "" -}}
|
|
{{- if hasKey . "gitUser" -}}
|
|
{{- $gitUser = .gitUser -}}
|
|
{{- else -}}
|
|
{{- $gitUser = promptString "gitUser" -}}
|
|
{{- end -}}
|
|
|
|
{{- $jsLinter := promptString "jsLinter" -}}
|
|
{{- if eq $jsLinter "" -}}
|
|
{{- $jsLinter = "standard" -}}
|
|
{{- end -}}
|
|
|
|
{{- $jsFixer := promptString "jsFixer" -}}
|
|
{{- if eq $jsFixer "" -}}
|
|
{{- $jsFixer = "standard" -}}
|
|
{{- end -}}
|
|
|
|
[data.gitconfig]
|
|
email = {{ $email | quote }}
|
|
username = {{ $gitUser | quote }}
|
|
|
|
[data.nvim]
|
|
js_linter = {{ $jsLinter | quote }}
|
|
js_fixer = {{ $jsFixer | quote }}
|