mix igniter.refactor.rename_module (igniter v0.8.0)
View SourceRename a module across a project with automatic reference updates.
Rename a given module across a whole project.
Renames the module everywhere it appears: defmodule, alias, use,
import, require, and all call sites. Also handles submodules, the
corresponding test module, string literals mentioning the module name, and
moves the file(s) to match the new module's proper location.
Keep in mind that it cannot detect 100% of cases, and will always miss
usage of dynamic module references (e.g. via apply/3).
Example
mix igniter.refactor.rename_module Foo.Bar Foo.Baz
Summary
Functions
Callback implementation for Igniter.Mix.Task.igniter/1.
Functions
Callback implementation for Igniter.Mix.Task.igniter/1.