View Source Tui (fnord v0.4.26)

Please don't judge me on how convoluted this is. Owl is so mediocre and elixir's logger is so complicated to configure dynamically in newer versions that I had to bolt together this monstrosity and now I'm watching helplessly as it lurches down to the village to wreak havoc on the townsfolk.

I'm sorry, townsfolk. I'm so sorry.

Anyway, this module is responsible for rendering the TUI. For interactive invocations, it uses Owl to render dynamic blocks with spinners and colorful status indicators.

For non-interactive invocations, it uses the logger to output status messages and warnings to STDERR. You can prevent that by invoking fnord with:

$ fnord ... 2>/dev/null

You can force non-interactive output by piping to tee:

$ fnord ... | tee

Summary

Functions

Link to this function

add_status(msg, detail \\ nil)

View Source
Link to this function

add_step(msg, detail \\ nil)

View Source

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

finish_step(id, outcome)

View Source
Link to this function

finish_step(id, outcome, msg, detail \\ nil)

View Source

Callback implementation for GenServer.init/1.

Link to this function

stop(pid, status \\ :normal)

View Source
Link to this function

update_status(id, msg, detail \\ nil)

View Source
Link to this function

update_step(id, msg, detail \\ nil)

View Source
Link to this function

warn(msg, detail \\ nil)

View Source