2021-08-21 20:34:51 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
2021-11-15 08:07:40 +00:00
|
|
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
|
|
|
source ./engine/envvars.sh
|
|
|
|
|
2021-08-22 06:42:12 +00:00
|
|
|
## colors for tput
|
|
|
|
# black=0
|
|
|
|
red=1
|
|
|
|
green=2
|
|
|
|
yellow=3
|
|
|
|
blue=4
|
|
|
|
# magenta=5
|
|
|
|
# cyan=6
|
|
|
|
# white=7
|
|
|
|
green() { printf "$(tput setaf $green)%s$(tput sgr0)" "$*" }
|
|
|
|
yellow() { printf "$(tput setaf $yellow)%s$(tput sgr0)" "$*" }
|
|
|
|
blue() { printf "$(tput setaf $blue)%s$(tput sgr0)" "$*" }
|
|
|
|
|
2021-11-15 08:07:40 +00:00
|
|
|
pipegreen() {while read line; do green $line; done}
|
|
|
|
pipeyellow() {while read line; do yellow $line; done}
|
|
|
|
pipeblue() {while read line; do blue $line; done}
|
|
|
|
|
|
|
|
tee >(lorri watch | sed 's/^/[lorri] /' | pipegreen ) \
|
|
|
|
>(./engine/serve.sh | sed 's/^/[http] /' | pipeyellow) \
|
|
|
|
>(./engine/auto-build.sh | sed 's/^/[make] /' | pipeblue) \
|
2022-02-19 08:48:39 +00:00
|
|
|
>(sleep 1 && open 'http://127.0.0.1:3077')
|