Addresses PR feedback: each conf.d/<toolbox>.toml now starts with a "# Toolbox: <name>" comment, matching the previous inline config.toml layout. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GA4dAzARMnLz1G9AmQkYYn
18 lines
642 B
Plaintext
18 lines
642 B
Plaintext
{{/* .chezmoitemplates/mise-toolbox-conf */}}
|
|
{{/* Expects data: (merge (dict "toolboxName" "<name>") .) */}}
|
|
{{- $toolboxName := .toolboxName -}}
|
|
{{ includeTemplate "chezmoi-managed-header" . }}
|
|
# Toolbox: {{ $toolboxName }}
|
|
|
|
[tools]
|
|
{{- $toolsList := index .tools.toolboxes $toolboxName }}
|
|
{{- range $tool := $toolsList }}
|
|
{{- if kindIs "map" $tool }}
|
|
{{- range $toolName, $params := $tool }}
|
|
{{ $toolName }} = { version = "{{ $params.version | default "latest" }}"{{ range $key, $value := omit $params "version" }}, {{ $key }} = "{{ $value }}"{{ end }} }
|
|
{{- end }}
|
|
{{- else }}
|
|
"{{ $tool }}" = "latest"
|
|
{{- end }}
|
|
{{- end }}
|