# `NervesMOTD`
[🔗](https://github.com/nerves-project/nerves_motd/blob/v0.1.17/lib/nerves_motd.ex#L8)

`NervesMOTD` prints a "message of the day" on Nerves devices.

To use, add `NervesMOTD.print()` to the `rootfs_overlay/etc/iex.exs` file in
your Nerves project.

# `cell`

```elixir
@type cell() :: {String.t(), IO.ANSI.ansidata()}
```

A label and value

# `option`

```elixir
@type option() :: {:logo, IO.ANSI.ansidata()} | {:extra_rows, [row()]}
```

MOTD options

# `row`

```elixir
@type row() :: [cell()]
```

One row of information

A row may contain 0, 1 or 2 cells.

# `print`

```elixir
@spec print([option()]) :: :ok
```

Print the message of the day

This uses the Nerves.Runtime library. In the unlikely event that it's not
available, it assumes the system isn't ready and doesn't print the MOTD.

Options:

* `:logo` - a custom logo to display instead of the default Nerves logo. Pass
  an empty logo (`""`) to remove it completely.
* `:extra_rows` - a list of custom rows or a callback for returning rows.
  The callback can be a 0-arity function reference or MFArgs tuple.

---

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