I hope to give you more meaningful and complete help throughout this week. But I just wanted to unblock you with the issue of it won't start on its own.
I have two commits here:
The first is the result of running mix format. You should be able to find an auto-formatter for whatever IDE you're using (they typically just run mix format for you, on-save). I personally use VS Code + ElixirLS extension (there may be some additional setting to set to get format on save? I get anxiety every time I step into vscode's settings for some reason, so I blocked out the memory of setting things up)
The second one moves the supervision of Blinky.Blink into GardienOs.Application.start/2. This is the equivalent of other language's int main(). If there is some new worker/supervisor you want to start, you'd generally start it here.
I hope to give you more meaningful and complete help throughout this week. But I just wanted to unblock you with the issue of it won't start on its own.
I have two commits here:
The first is the result of running
mix format
. You should be able to find an auto-formatter for whatever IDE you're using (they typically just runmix format
for you, on-save). I personally use VS Code + ElixirLS extension (there may be some additional setting to set to get format on save? I get anxiety every time I step into vscode's settings for some reason, so I blocked out the memory of setting things up)The second one moves the supervision of
Blinky.Blink
intoGardienOs.Application.start/2
. This is the equivalent of other language'sint main()
. If there is some new worker/supervisor you want to start, you'd generally start it here.