Mix.Pow (Pow v1.0.25) View Source
Utilities module for mix tasks.
Link to this section Summary
Functions
Fetches the context base module for the app.
Fetches the library path for the context app.
Raises an exception if application doesn't have Ecto as dependency.
Raises an exception if application doesn't have Phoenix as dependency.
Raises an exception if the project is an umbrella app.
Parses argument options into a map.
Parses arguments into schema name and schema plural.
Link to this section Functions
Specs
Fetches the context base module for the app.
Specs
Fetches the library path for the context app.
Specs
ensure_ecto!(binary(), OptionParser.argv()) :: :ok
Raises an exception if application doesn't have Ecto as dependency.
Specs
ensure_phoenix!(binary(), OptionParser.argv()) :: :ok
Raises an exception if application doesn't have Phoenix as dependency.
Specs
no_umbrella!(binary()) :: :ok
Raises an exception if the project is an umbrella app.
Specs
parse_options(OptionParser.argv(), Keyword.t(), Keyword.t()) :: {map(), OptionParser.argv(), OptionParser.errors()}
Parses argument options into a map.
Specs
Parses arguments into schema name and schema plural.