Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 815 Bytes

README.md

File metadata and controls

37 lines (32 loc) · 815 Bytes

Rename

For the indecisive developer

Renames all files, modules, otp statements, etc in most standard Elixir applications

Build Status Hex Version

Install

Add to your mix dependencies in mix.exs

# mix.exs
defp deps do
  [
    {:rename, "~> 0.1.0", only: :dev}
  ]
end

and install

mix deps.get

Usage

You can run it as a mix task

mix rename OldAppName NewAppName old_app_otp new_app_top

Or from Elixir

Rename.run(
  {"OldAppName", "NewAppName"},
  {"old_app_otp", "new_app_otp"},
  ignore_files: "./lib/old_app_otp/sacred.ex" # optional options
)