dev.sh 278 B

1234567891011
  1. function exampleRestart() {
  2. echo "=================>"
  3. killall qor5example
  4. source example/dev_env
  5. # export DEV_PRESETS=1
  6. go build -o /tmp/qor5example example/main.go && /tmp/qor5example
  7. }
  8. export -f exampleRestart
  9. find . -name "*.go" | entr -r bash -c "exampleRestart"