ExFactor

ExFactor is a refactoring helper. Given a module, function name, and arity, it will locate all uses of that function, change the callers to a new module and/or function name, and move the function from the original location to a new file/module. At this time, ExFactor cannot change the function arity.

BETA Warning

ExFactor is still in active development and the API can and will change frequently!

Use at your peril, for now.

Example

mix ex_factor --module TestModule.Here --function my_func --arity 1 --target NewModule.Test

Roadmap TODO

Roadmap TODONE

Installation

If available in Hex, the package can be installed by adding ex_factor to your list of dependencies in mix.exs:

def deps do
[
{:ex_factor, "~> 0.1.0", only: [:dev]}
]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_factor.

REFACTORY, just in case.