table_rex v0.10.0 TableRex

TableRex generates configurable, text-based tables for display

Summary

Functions

A shortcut function to render with a one-liner. Sacrifices all customisation for those that just want sane defaults. Returns {:ok, rendered_string} on success and {:error, reason} on failure

A shortcut function to render with a one-liner. Sacrifices all customisation for those that just want sane defaults. Returns the rendered_string on success and raises RuntimeError on failure

Functions

quick_render(rows, header \\ [], title \\ nil)

Specs

quick_render(list, list, String.t | nil) :: TableRex.Renderer.render_return

A shortcut function to render with a one-liner. Sacrifices all customisation for those that just want sane defaults. Returns {:ok, rendered_string} on success and {:error, reason} on failure.

quick_render!(rows, header \\ [], title \\ nil)

Specs

quick_render!(list, list, String.t | nil) ::
  String.t |
  no_return

A shortcut function to render with a one-liner. Sacrifices all customisation for those that just want sane defaults. Returns the rendered_string on success and raises RuntimeError on failure.