NAME
prt - Command line frontend of App::PRT
SYNOPSIS
$ prt <command> <args>
$ prt <command> <args> <files>
DESCRIPTION
prt is the command line frontend of App::PRT.
SUBCOMMANDS
replace_token
Replace
footoken withbar.prt replace_token foo barReplace
footoken withbarbut target statements must havebazztoken.prt replace_token foo bar --in-statement bazzrename_class
Rename
Fooclass toBarclass.prt rename_class Foo Barrename_namespace
Rename
FooandFoo::*classes toBarandBar::*classes.prt rename_namespace Foo Bardelete_method
Delete
eatmethod fromFoodclass.prt delete_method Food eatmove_class_method
Move
methodmethod inClassclass toanother_methodmethod inAnotherClass.Class's including packages are copied toAnotherClass.prt move_class_method 'Class#method' 'AnotherClass#another_method'
TARGET FILES
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 to detect project root directory. When executed in git repository, All files in the repository are used.
prt replace_token foo bar # Refactor the project in current working directory
LICENSE
Copyright (C) hitode909.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
hitode909 <hitode909@gmail.com>