prt - Command line frontend of App::PRT
$ prt <command> <args> $ prt <command> <args> <files>
prt is the command line frontend of App::PRT.
replace_token
Replace foo token with bar.
foo
bar
prt replace_token foo bar
rename_class
Rename Foo class to Bar class.
Foo
Bar
prt rename_class Foo Bar
delete_method
Delete eat method from Food class.
eat
Food
prt delete_method Food eat
You can specify the target files to refactor.
prt replace_token foo bar lib/**/**.pm t/*.t # Refactor Perl modules in lib/ and test files in t/
Without target files, App::PRT collects source codes in your project automatically. App::PRT searches cpanfile or .git to detect project root directory.
App::PRT
cpanfile
.git
prt replace_token foo bar # Refactor the project in current working directory
Copyright (C) hitode909.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
hitode909 <hitode909@gmail.com>
To install App::PRT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PRT
CPAN shell
perl -MCPAN -e shell install App::PRT
For more information on module installation, please visit the detailed CPAN module installation guide.