2023-02-25 16:18:35 +00:00
|
|
|
{{- $email := "" -}}
|
|
|
|
{{- if hasKey . "email" -}}
|
|
|
|
{{- $email = .email -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $email = promptString "email" -}}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{- $gitUser := "" -}}
|
|
|
|
{{- if hasKey . "gitUser" -}}
|
|
|
|
{{- $gitUser = .gitUser -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $gitUser = promptString "gitUser" -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2023-02-26 15:48:36 +00:00
|
|
|
{{- $jsLinter := promptString "jsLinter" "standard" -}}
|
2023-02-25 16:18:35 +00:00
|
|
|
{{- if eq $jsLinter "" -}}
|
|
|
|
{{- $jsLinter = "standard" -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2023-02-26 15:48:36 +00:00
|
|
|
{{- $jsFixer := promptString "jsFixer" "standard" -}}
|
2023-02-25 16:18:35 +00:00
|
|
|
{{- if eq $jsFixer "" -}}
|
|
|
|
{{- $jsFixer = "standard" -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2023-02-26 15:48:36 +00:00
|
|
|
{{- $installGo := promptBool "installGo" true -}}
|
|
|
|
{{- $installNode := promptBool "installNode" true -}}
|
2023-02-26 15:54:56 +00:00
|
|
|
{{- $installRust := promptBool "installRust" true -}}
|
2023-02-26 15:48:36 +00:00
|
|
|
|
2023-02-25 16:18:35 +00:00
|
|
|
[data.gitconfig]
|
|
|
|
email = {{ $email | quote }}
|
|
|
|
username = {{ $gitUser | quote }}
|
|
|
|
|
|
|
|
[data.nvim]
|
|
|
|
js_linter = {{ $jsLinter | quote }}
|
|
|
|
js_fixer = {{ $jsFixer | quote }}
|
2023-02-26 15:48:36 +00:00
|
|
|
|
|
|
|
[data.dev]
|
|
|
|
golang = {{ $installGo }}
|
|
|
|
nodejs = {{ $installNode }}
|
2023-02-26 15:54:56 +00:00
|
|
|
rust = {{ $installRust }}
|