{{ define "pull-command-switcher" }} {{/* Pull command with inline OCI client switcher. Expects dict with: RegistryURL, OwnerHandle, RepoName, Tag, ArtifactType, OciClient, IsLoggedIn For helm charts, shows helm command only (no switcher). For container images, shows a client dropdown that updates the command. Logged-in users: saves to profile via HTMX POST. Anonymous users: saves to localStorage. */}} {{ if eq .ArtifactType "helm-chart" }}

Pull this chart

{{ if .Tag }} {{ template "docker-command" (print "helm pull oci://" .RegistryURL "/" .OwnerHandle "/" .RepoName " --version " .Tag) }} {{ else }} {{ template "docker-command" (print "helm pull oci://" .RegistryURL "/" .OwnerHandle "/" .RepoName) }} {{ end }}
{{ else }}
{{ if .Tag }} {{ template "docker-command" (print (pullPrefix .OciClient) .RegistryURL "/" .OwnerHandle "/" .RepoName ":" .Tag) }} {{ else }} {{ template "docker-command" (print (pullPrefix .OciClient) .RegistryURL "/" .OwnerHandle "/" .RepoName ":latest") }} {{ end }}
{{ end }} {{ end }}