MutagenEx.Pipeline.ScopeFacade behaviour (mutagen_ex v0.2.0)

Copy Markdown View Source

Behaviour for the :scope slot of the Mix.Tasks.Mutagen dispatch table.

Production default: MutagenEx.ScopeResolver. The Mix task calls mod.resolve(target, opts) once per --scope target.

Summary

Callbacks

Resolve a single --scope target to a list of %Scope{} records.

Callbacks

resolve(target, opts)

@callback resolve(target :: String.t(), opts :: keyword()) ::
  {:ok, [MutagenEx.ScopeResolver.Scope.t()]} | {:error, atom(), map()}

Resolve a single --scope target to a list of %Scope{} records.