Current section

Files

Jump to
phx_new lib mix tasks local.phx.ex
Raw

lib/mix/tasks/local.phx.ex

defmodule Mix.Tasks.Local.Phx do
use Mix.Task
@shortdoc "Updates the Phoenix project generator locally"
@moduledoc """
Updates the Phoenix project generator locally.
$ mix local.phx
Accepts the same command line options as `archive.install hex phx_new`.
"""
@impl true
def run(args) do
Mix.Task.run("archive.install", ["hex", "phx_new" | args])
end
end