#!perl

use strict;
use warnings;
use App::PRT::CLI;

my $cli = App::PRT::CLI->new;
$cli->parse(@ARGV);
$cli->run;
__END__

=encoding utf-8

=head1 NAME

prt - Command line frontend of App::PRT

=head1 SYNOPSIS

    $ prt <command> <args>
    $ prt <command> <args> <files>

=head1 DESCRIPTION

prt is the command line frontend of L<App::PRT>.

=head1 SUBCOMMANDS

=over 4

=item * replace_token

Replace C<foo> token with C<bar>.

    prt replace_token foo bar

=item * rename_class

Rename C<Foo> class to C<Bar> class.

    prt rename_class Foo Bar

=item * delete_method

Delete C<eat> method from C<Food> class.

    prt delete_method Food eat

=back

=head1 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, C<App::PRT> collects source codes in your project automatically.
C<App::PRT> searches C<cpanfile> or C<.git> to detect project root directory.

    prt replace_token foo bar                    # Refactor the project in current working directory

=head1 LICENSE

Copyright (C) hitode909.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

=head1 AUTHOR

hitode909 E<lt>hitode909@gmail.comE<gt>

=cut
