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 may change frequently!

Use at your peril, for now.

Example

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

Roadmap TODONE

Roadmap TODO

Updates

See CHANGELOG.md

Updating the changelog. (Uses auto-changelog) https://github.com/cookpete/auto-changelog

auto-changelog --breaking-pattern "BREAKING CHANGE"

Tagging by version in mix.exs

    git tag `egrep '@version \"\d\.\d\.\d\".*' mix.exs | awk '{gsub(/"/, "", $2); print $2}'`

Installation

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

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

Documentation is published on HexDocs. The docs can be found at https://hexdocs.pm/ex_factor.

Alternate name: REFACTORY, just in case.

License

See LICENSE

Miscellaneous resources