Skip to content

Commit

Permalink
fix(chezmoi): update interactive prompts to include condition on mini…
Browse files Browse the repository at this point in the history
…mum value
  • Loading branch information
entelecheia committed Mar 16, 2024
1 parent f703ed0 commit 949e71f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions chezmoi/.chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@
# {{- $age_keyfile := joinPath .chezmoi.homeDir (printf ".ssh/age_key_%s" $github_username) -}}
# {{- writeToStdout (printf "✅ Age key filename set as '%s'\n" $age_keyfile) -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ What is your GitHub Token (If not set, you will be prompted to authenticate)" -}}
# {{- $answer := "" -}}
# {{- if $github_token -}}
Expand All @@ -598,7 +598,7 @@
# {{- writeToStdout "❎ GitHub Token not set\n" -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ What passphrase do you want to use for your GPG key" -}}
# {{- $answer := "" -}}
# {{- if $gpg_passphrase -}}
Expand All @@ -614,7 +614,7 @@
# {{- writeToStdout "❎ GPG passphrase not set\n" -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ Do you want to use GPG(or SSH) to sign git commits globally" -}}
# {{- $git_commit_gpgsign = promptBool $question $git_commit_gpgsign -}}
# {{- end -}}
Expand All @@ -624,7 +624,7 @@
# {{- writeToStdout "❎ Git commits will not be signed by GPG(or SSH)\n" -}}
# {{- end -}}

# {{- if and $interactive $use_dotdrop -}}
# {{- if and $interactive ($minimum | not) $use_dotdrop -}}
# {{- $question := "❔ What is your dotdrop files repository URL (ex: /~https://github.com/entelecheia/dotdrop-files.git)" -}}
# {{- $answer := "" -}}
# {{- if $dotdrop_repo -}}
Expand All @@ -641,7 +641,7 @@
# {{- writeToStdout "❎ dotdrop files repo not set\n" -}}
# {{- end -}}

# {{- if and $interactive $use_dotdrop -}}
# {{- if and $interactive ($minimum | not) $use_dotdrop -}}
# {{- $question := "❔ What is your dotdrop user profile (ex: hostname)" -}}
# {{- $answer := "" -}}
# {{- if $dotdrop_user_profile -}}
Expand All @@ -653,7 +653,7 @@
# {{- end -}}
# {{- writeToStdout (printf "✅ dotdrop user profile set as '%s'\n" $dotdrop_user_profile) -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ What is your Docker username" -}}
# {{- $answer := "" -}}
# {{- if $docker_username -}}
Expand All @@ -669,7 +669,7 @@
# {{- writeToStdout "❎ Docker username not set\n" -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ What is your Docker container registry (ex: ghcr.io)" -}}
# {{- $answer := "" -}}
# {{- if $docker_container_registry -}}
Expand Down Expand Up @@ -744,7 +744,7 @@
# {{- writeToStdout "❎ Colab workspace not symlinked\n" -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ Do you want to use lfs-folderstore for git lfs" -}}
# {{- $use_lfs_folderstore = promptBool $question $use_lfs_folderstore -}}
# {{- end -}}
Expand All @@ -765,7 +765,7 @@
# {{- writeToStdout (printf "✅ lfs-folderstore location set as '%s'\n" $lfs_folderstore_dir) -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ Do you want to use Codecov" -}}
# {{- $use_codecov = promptBool $question $use_codecov -}}
# {{- end -}}
Expand All @@ -786,7 +786,7 @@
# {{- writeToStdout "❎ Codecov disabled\n" -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ Do you want to use Sourcegraph" -}}
# {{- $use_sourcegraph = promptBool $question $use_sourcegraph -}}
# {{- end -}}
Expand Down Expand Up @@ -818,7 +818,7 @@
# {{- writeToStdout (printf "✅ Sourcegraph endpoint set as '%s'\n" $sourcegraph_endpoint) -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ Do you want to use WakaTime" -}}
# {{- $use_wakatime = promptBool $question $use_wakatime -}}
# {{- end -}}
Expand All @@ -839,7 +839,7 @@
# {{- writeToStdout "❎ WakaTime disabled\n" -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ Do you want to use OpenAI API" -}}
# {{- $use_openai = promptBool $question $use_openai -}}
# {{- end -}}
Expand Down Expand Up @@ -907,7 +907,7 @@
# {{- end -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ What is your Doppler token" -}}
# {{- $answer := "" -}}
# {{- if $doppler_token -}}
Expand Down Expand Up @@ -974,7 +974,7 @@
# {{- writeToStdout "❎ autorestic disabled\n" -}}
# {{- end -}}

# {{- if and $interactive $sudoer -}}
# {{- if and $interactive ($minimum | not) $sudoer -}}
# {{- $question := "❔ Do you want to use visual studio code" -}}
# {{- $use_code = promptBool $question $use_code -}}
# {{- end -}}
Expand Down Expand Up @@ -1002,7 +1002,7 @@
# {{- writeToStdout "❎ python tools disabled\n" -}}
# {{- end -}}

# {{- if $interactive -}}
# {{- if and $interactive ($minimum | not) -}}
# {{- $question := "❔ Do you want to use rbenv" -}}
# {{- $use_rbenv = promptBool $question $use_rbenv -}}
# {{- end -}}
Expand Down

0 comments on commit 949e71f

Please sign in to comment.