This commit is contained in:
bel
2023-10-02 22:09:56 -06:00
parent aba83156ee
commit af2db988fb
3 changed files with 113 additions and 0 deletions

15
homebrew.sh Normal file
View File

@@ -0,0 +1,15 @@
#! /bin/bash
if ! which tpl; then
go install github.com/bluebrown/go-template-cli/cmd/tpl@latest
fi &> /dev/null
if ! which gojq; then
go install github.com/itchyny/gojq@latest
fi &> /dev/null
while sleep 1; do
clear
cat ./homebrew.yaml \
| gojq --yaml-input . \
| tpl --file homebrew.tmpl
done