SvEx. Config. Otp
(SvEx v0.4.2)
The :otp project preset — priv/templates/base_otp_app.exs as code.
new!/0 returns exactly what that template describes. This preset is thin by
construction: the struct defaults in SvEx.Config are the :otp
template, so the only value it supplies is project.type itself. It exists
so that both project types are reached the same way, and so the template has
a module that corresponds to it — SvEx.Config.Web is where the real
difference lives.
This is a builder, not a struct. It returns %SvEx.Config{}; there is no
%SvEx.Config.Otp{}.
Summary
Functions
Builds an :otp config, with overrides merged over the preset.
The values this preset supplies, before any override.
Functions
@spec new!(keyword() | map()) :: SvEx.Config.t()
Builds an :otp config, with overrides merged over the preset.
Overrides recurse to the leaf, so naming one key in a section keeps the rest of that section's preset values.
@spec preset() :: keyword()
The values this preset supplies, before any override.