flyerhzm / rails_best_practices

a code metric tool for rails projects
http://rails-bestpractices.com
MIT License
4.17k stars 276 forks source link

Add CLI class #336

Closed kazuooooo closed 6 years ago

kazuooooo commented 6 years ago

Hi, I added CLI class discussed in this issue

I make two cahnges.

by these change, now can call command like

RailsBestPractices::CLI.run(['-d', '-o', 'path/to/file'])
# the same as "rails_best_practices -d -o path/to/file"

If some changes needed, I'm glad to do them :)