https://github.com/afeld/refactor
a command line tool to help refactor your code
https://github.com/afeld/refactor
Last synced: over 1 year ago
JSON representation
a command line tool to help refactor your code
- Host: GitHub
- URL: https://github.com/afeld/refactor
- Owner: afeld
- License: mit
- Created: 2014-06-12T05:43:52.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-15T20:35:37.000Z (over 11 years ago)
- Last Synced: 2024-10-04T10:33:27.896Z (almost 2 years ago)
- Language: Ruby
- Homepage:
- Size: 176 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Refactor
A command line tool to help refactor your code.

## Usage
Make sure your code is backed up (e.g. under version control and fully committed) first!
```bash
gem install refactor
# Then, from your project (sub)directory:
refactor FROM TO
```
where `FROM` and `TO` can each be a name that `has_underscores`, is `CamelCased`, or `has-dashes`. It will replace the `FROM` with the `TO` in the corresponding format, both in the filenames and the body of the file.