ConfigSmuggler.encode

You're seeing just the function encode, go back to ConfigSmuggler module for more information.

Specs

encode(decoded_configs()) ::
  {:ok, encoded_config_map()} | {:error, error_reason()}

Converts Elixir-native decoded configs (i.e., a keyword list with app name as key and keyword list of configs as value) into an encoded config map.

iex> ConfigSmuggler.encode([logger: [level: :info], my_app: [key: "value"]])
{:ok, %{
    "elixir-logger-level" => ":info",
    "elixir-my_app-key" => "\"value\"",
}}