Toolboxes declared in .chezmoidata/tools.yaml no longer need a matching source file under private_dot_config/mise/conf.d/. The run_onchange install script now loops over tools.yaml/hosts.yaml directly to (re)generate ~/.config/mise/conf.d/<toolbox>.toml, and removes files for toolboxes no longer assigned to the host/user, so mise config.toml stays limited to individual, non-toolbox tools. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GA4dAzARMnLz1G9AmQkYYn
16 lines
611 B
Plaintext
16 lines
611 B
Plaintext
{{/* .chezmoitemplates/mise-toolbox-conf */}}
|
|
{{/* Expects data: (merge (dict "toolboxName" "<name>") .) */}}
|
|
{{- $toolboxName := .toolboxName -}}
|
|
{{ includeTemplate "chezmoi-managed-header" . }}
|
|
[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 }}
|