added ansi2txt to chezmoiexternal

This commit is contained in:
Lockszmith (VAST@MacBook) 2025-04-15 13:02:12 -04:00
parent b98a0cb974
commit 03a2310480
1 changed files with 11 additions and 0 deletions

View File

@ -197,6 +197,17 @@
"refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}}
{{- with $app_name := "ansi2txt" -}}
{{- with $repo := (printf "%s/%s" "gabe565" $app_name) -}}
{{- with $version := trimPrefix "v" (gitHubLatestRelease $repo).GetTagName -}}
{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
"type" "archive-file"
"url" (printf "https://github.com/%s/releases/download/v%s/%s_%s_%s.tar.gz" $repo $version $app_name $version $myArch)
"path" $app_name
"executable" true
"refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}}
{{/*
# valid arch strings:
# linux-aarch64