added broot
This commit is contained in:
parent
3d2a1974b3
commit
1c475101d0
|
@ -337,6 +337,22 @@
|
||||||
"executable" true
|
"executable" true
|
||||||
"refreshPeriod" $defaultRefresh
|
"refreshPeriod" $defaultRefresh
|
||||||
) -}}{{- end -}}{{- end -}}{{- end -}}
|
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||||
|
|
||||||
|
{{- with $app_name := "broot" -}}
|
||||||
|
{{- with $bin_url := (output "sh" "-c" (
|
||||||
|
list
|
||||||
|
"cargo-binstall --log-level debug --dry-run --no-track --no-confirm --json-output"
|
||||||
|
$app_name
|
||||||
|
"| jq \".fields | select ( .message == \\\"Downloading package\\\" )\""
|
||||||
|
| join " ") | fromJson
|
||||||
|
).url
|
||||||
|
}}{{ $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
|
||||||
|
"type" "archive-file"
|
||||||
|
"url" $bin_url
|
||||||
|
"path" (printf "%s" $app_name)
|
||||||
|
"executable" true
|
||||||
|
"refreshPeriod" $defaultRefresh
|
||||||
|
) -}}{{- end -}}{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- $externals | toYaml -}}
|
{{- $externals | toYaml -}}
|
||||||
|
|
Loading…
Reference in New Issue