diff options
author | 2025-05-28 22:03:05 +0100 | |
---|---|---|
committer | 2025-05-28 22:03:05 +0100 | |
commit | 3ad8be69ce21b0e03046e31eca348b112e377e2e (patch) | |
tree | 12ca5a665f191bf849adb8531fcd4ce24cce44fa | |
parent | Add PSL files to gitignore (diff) |
Update project as application
-rw-r--r-- | lib/lithium.ex | 21 | ||||
-rw-r--r-- | mix.exs | 6 |
2 files changed, 14 insertions, 13 deletions
diff --git a/lib/lithium.ex b/lib/lithium.ex index f8bc2d2..b42c45a 100644 --- a/lib/lithium.ex +++ b/lib/lithium.ex @@ -1,18 +1,17 @@ defmodule Lithium do + use Application + @moduledoc """ - Documentation for `Lithium`. + Lithium is a mail authentication daemon. """ - @doc """ - Hello world. - - ## Examples + @impl true + def start(_start_type, _start_args) do + children = [ + {Lithium.Util.PublicSuffix, []} + ] - iex> Lithium.hello() - :world - - """ - def hello do - :world + opts = [strategy: :one_for_one, name: Lithium.Supervisor] + Supervisor.start_link(children, opts) end end @@ -7,14 +7,16 @@ defmodule Lithium.MixProject do version: "0.1.0", elixir: "~> 1.18", start_permanent: Mix.env() == :prod, - deps: deps() + deps: deps(), + compilers: [:yecc, :leex] ++ Mix.compilers() ] end # Run "mix help compile.app" to learn about applications. def application do [ - extra_applications: [:logger] + mod: {Lithium, []}, + extra_applications: [:logger, :inets, :ssl] ] end |