Another wonderful tool is "entr". It just runs a program when files change.
It's incredible.
I use it 20-40 times an hour to do very fast Dev/DevOps development:
- "run Pytest when Python files change"
- "I forgot how to use ps, run my-ps.sh when it changes and show me the output"
- "rebuild all these Kubernetes resources when I edit the YAML files"
- "run fast lint, then unit test Python files, then invoke one and show me the results"
It's incredible.
I use it 20-40 times an hour to do very fast Dev/DevOps development:
- "run Pytest when Python files change" - "I forgot how to use ps, run my-ps.sh when it changes and show me the output" - "rebuild all these Kubernetes resources when I edit the YAML files" - "run fast lint, then unit test Python files, then invoke one and show me the results"
Link: https://jvns.ca/blog/2020/06/28/entr/