cat-bookmarker/deps/phoenix/lib/mix/tasks/phx.gen.ex

27 lines
820 B
Elixir
Raw Normal View History

2024-03-10 18:52:04 +00:00
defmodule Mix.Tasks.Phx.Gen do
use Mix.Task
@shortdoc "Lists all available Phoenix generators"
@moduledoc """
Lists all available Phoenix generators.
## CRUD related generators
The table below shows a summary of the contents created by the CRUD generators:
| Task | Schema | Migration | Context | Controller | View | LiveView |
|:------------------ |:-:|:-:|:-:|:-:|:-:|:-:|
| `phx.gen.embedded` | | | | | | |
| `phx.gen.schema` | | | | | | |
| `phx.gen.context` | | | | | | |
| `phx.gen.live` | | | | | | |
| `phx.gen.json` | | | | | | |
| `phx.gen.html` | | | | | | |
"""
def run(_args) do
Mix.Task.run("help", ["--search", "phx.gen."])
end
end