ConfigSmuggler.decode

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

decode(encoded_config_map)

View Source

Specs

Decodes a map of string-encoded key/value pairs into a keyword list of Elixir configs, keyed by app. Also returns a list of zero or more invalid key/value pairs along with their errors.

iex> ConfigSmuggler.decode(%{
...>   "elixir-my_app-some_key" => "22",
...>   "elixir-my_app-MyApp.Endpoint-url-host" => "\"localhost\"",
...>   "elixir-logger-level" => ":info",
...>   "elixir-my_app-MyApp.Endpoint-url-port" => "4444",
...>   "bad key" => "22",
...>   "elixir-my_app-foo" => "bogus value",
...> })
{:ok,
  [
    my_app: [
      {:some_key, 22},
      {MyApp.Endpoint, [
        url: [
          port: 4444,
          host: "localhost",
        ]
      ]},
    ],
    logger: [
      level: :info,
    ],
  ],
  [
    {{"elixir-my_app-foo", "bogus value"}, :bad_value},
    {{"bad key", "22"}, :bad_key},
  ]
}