# `WardrikDaemon.CLI.Table`

Prints rows as columns, each as wide as its widest cell, under a faint header.

# `pairs`

```elixir
@spec pairs(WardrikDaemon.CLI.Context.t(), [{String.t(), term()}]) :: :ok
```

Prints `pairs` of a label and a value, one a line. Leaves out those with no value.

# `print`

```elixir
@spec print(WardrikDaemon.CLI.Context.t(), [String.t()], [[term()]], String.t()) ::
  :ok
```

Prints `rows` under `header`, or `empty` if there are none. A `nil` cell is empty.

# `show`

```elixir
@spec show(
  WardrikDaemon.CLI.Context.t(),
  term(),
  [String.t()],
  [[term()]],
  String.t()
) :: :ok
```

Writes `answer` as JSON if the command was given `--json`. Otherwise prints it as `print/4` does.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
