Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mainshayne233/rename
Rename your Elixir apps
https://github.com/mainshayne233/rename
Last synced: 8 days ago
JSON representation
Rename your Elixir apps
- Host: GitHub
- URL: https://github.com/mainshayne233/rename
- Owner: MainShayne233
- Created: 2017-04-15T06:07:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T01:59:46.000Z (almost 3 years ago)
- Last Synced: 2024-09-19T12:21:09.458Z (2 months ago)
- Language: Elixir
- Homepage:
- Size: 16.6 KB
- Stars: 46
- Watchers: 4
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Rename
For the indecisive developerRenames all files, modules, otp statements, etc in most standard Elixir applications
[![Build Status](https://travis-ci.org/MainShayne233/rename.svg?branch=master)](https://travis-ci.org/MainShayne233/rename)
[![Hex Version](http://img.shields.io/hexpm/v/rename.svg?style=flat)](https://hex.pm/packages/rename)## Install
Add to your mix dependencies in `mix.exs`
```elixir
# mix.exs
defp deps do
[
{:rename, "~> 0.1.0", only: :dev}
]
end
```
and install
```bash
mix deps.get
```## Usage
You can run it as a `mix task`
```bash
mix rename OldAppName NewAppName old_app_otp new_app_top
```
Or from Elixir
```elixir
Rename.run(
{"OldAppName", "NewAppName"},
{"old_app_otp", "new_app_otp"},
ignore_files: "./lib/old_app_otp/sacred.ex" # optional options
)
```