lib/hush/config_provider.ex

defmodule Hush.ConfigProvider do
  @moduledoc """
  This config provider can be attached to your release to run automatically on boot.
  """

  @behaviour Config.Provider

  @impl Config.Provider
  @spec init(any()) :: nil
  def init(_), do: nil

  @impl Config.Provider
  @spec load(Keyword.t(), any()) :: Keyword.t()
  def load(config, _), do: Hush.resolve!(config)
end