Current section

Files

Jump to
io_ansi_table lib io ansi table app.ex
Raw

lib/io/ansi/table/app.ex

defmodule IO.ANSI.Table.App do
use Application
alias __MODULE__
alias IO.ANSI.Table.Server
@spec start(Application.start_type(), term) :: {:ok, pid}
def start(_type, :ok) do
[
# Child spec relying on use GenServer...
{Server, :ok}
]
|> Supervisor.start_link(name: App, strategy: :one_for_one)
end
end