API Reference Catalyst v#1.0.0-beta.1

Copy Markdown View Source

Modules

Main entry point for Catalyst. Orchestrates the execution of plugins, actions, and validations.

Generic action for inserting arbitrary Elixir AST/source into a .ex or .exs file using Sourceror. Handles anything with a do...end block - def/defp (guarded or not, block or one-liner), and any other macro call that takes a do: body (schema, pipeline, scope, etc) - and also handles the body itself being a list literal (e.g. a supervisor's children = [...] or def children, do: [...]), splicing into the list's elements rather than appending next to it.

Parses and validates plugin options using OptionParser-like semantics.

Declares a post-validation action.

Mix Tasks