An alternative to Air that just does the one thing Air should be doing. No hugo. No forced upgrades to random Go version. Just run processes and restart on builds.
You can not select more than 25 topicsTopics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
No random ass Hugo includes. [No forced upgrades to the latest possible Go](https://github.com/air-verse/air/releases/tag/v1.63.0). No randomly included
Projects like Air try to be a passive build tool (and site generator, and Go promotion systems, and
Delta Wing Combat Engine, and Alien Defense System, and Cake Baking Cockroach) but ozai lets you
just use your existing build tool to tell it when to restart things. Rather than monitor all of
your files (which never goes right), you just do this:
```shell
curl http://127.0.0.1:9999/tester1
```
That's it. When Ozai receives that request it just restarts that process and keeps going. You can
then toss this into a Makefile or other build tool and every time you build it'll kick things over.
Dead simple and works 100% of the time.
Many things about Air are then fixed with this design:
1. Air tries to build your whole web application when you just change one .css file.
2. The auto refresh in the browser _also_ needs to have a build error notice because Air is doing your building.
3. When there's a build failure, you have to go look at Air's output rather than just using your existing IDE or editor's existing error handline.
4. When you accidentally refresh while Air is doing a build you get a huge delay in the browser, it errors out, then you have to wait and hit refresh again anyway, defeating the whole purpose of the auto-refresh feature.
## Beta Software
Even though this is working this is a 3 day hack because Air decided their latest release would
force me to upgrade my Go, which caused all of my projects to fail and cost me an hour of work. It
still need actual usage by me to sort out any necessary features, but for the most part it's
useable.
Things I may add:
* Additional configuration options like the port and base URL to use.
* Whether a process should restart or not.
* Logging process output to a file.
* _Maybe_ a little TUI that emulates some tmux stuff. Not sure. I guess just use tmux but I'm on