Is it possible to rename a mojolicious app? I am generating an app with
mojo generate app MyWebApp
and after I while I would like to rename the app and all the files that contains my MyWebApp(including the use MyWebApp::Controller::Name etc.
Is it possible?
# change file contents
grep -l -r MyWebApp | xargs perl -i -lpe's/MyWebApp/CoolNewWebApp/'
# change file names
find | xargs rename 's/MyWebApp/CoolNewWebApp/'
find | xargs rename 's/my_web_app/cool_new_web_app/'
You get the rename command with cpanm File::Rename
.