An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Refactor

A command line tool to help refactor your code.

![example](example.png)

## 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.