Bundlex v0.1.2 Bundlex.Platform behaviour View Source
Link to this section Summary
Functions
Detects current platform
Converts platform passed as options into platform atom valid for further use and module that contains platform-specific callbacks
Link to this section Types
Link to this section Functions
Detects current platform.
In case of success returns platform name
Otherwise raises Mix error.
Link to this function
get_from_opts!(opts)
View Source
get_from_opts!(OptionParser.parsed()) :: name_t()
Converts platform passed as options into platform atom valid for further use and module that contains platform-specific callbacks.
First argument are keyword list, as returned from OptionParser.parse/2
or
OptionParse.parse!/2
.
It expects that platform
option was passed to options.
In case of success returns platform name
Otherwise raises Mix error.
Link to this section Callbacks
Link to this callback
extra_otp_configure_options()
View Source
extra_otp_configure_options() :: [] | [String.t()]