nebulab / erb-formatter

Format ERB files with speed and precision
MIT License
144 stars 24 forks source link

Update file(s) in place? #4

Closed scarroll32 closed 1 year ago

scarroll32 commented 2 years ago

Is there an easy way to run this against a file or folder or views and update the files in place, without all the piping?

eg:

erb-format app/views/admin/ahoy_events/show.html.erb

or

erb-format app/views/admin/*
elia commented 1 year ago

@scarroll32 it's definitely possible, just added an example to the readme, please also explore --help for even more options 👍