-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.chezmoi.toml.tmpl
More file actions
25 lines (20 loc) · 920 Bytes
/
.chezmoi.toml.tmpl
File metadata and controls
25 lines (20 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{- $sonarToken := "" -}}
{{- $githubToken := "" -}}
{{- $workEnvChoices := list "macos" "gm" "fedoradesk" -}}
{{- $workEnv := promptChoiceOnce . "workEnv" "Work environment" $workEnvChoices -}}
{{- $gitUserName := promptStringOnce . "gitUserName" "Git user name" -}}
{{- $gitUserEmail := promptStringOnce . "gitUserEmail" "Git email" -}}
{{- $gitUserSSHPubKey := promptStringOnce . "gitUserSSHPubKey" "Git signing key location (ex. ~/.ssh/id_rsa.pub)" -}}
{{- if eq $workEnv "gm" -}}
{{- $sonarToken = promptStringOnce . "sonarToken" "Sonar token" -}}
{{- $githubToken = promptStringOnce . "githubToken" "GitHub token" -}}
{{- end -}}
[data.common]
workEnv = {{ $workEnv | quote }}
[data.gitconfig.user]
name = {{ $gitUserName | quote }}
email = {{ $gitUserEmail | quote }}
sshPubKey = {{ $gitUserSSHPubKey | quote }}
[data.gm]
sonarToken = {{ $sonarToken | quote }}
githubToken = {{ $githubToken | quote }}