|
Revision 9000, 0.6 kB
(checked in by tomyhero, 5 years ago)
|
|
lang/perl/App-Starter : fix spelling for pl file
|
| Line | |
|---|
| 1 | #!/usr/bin/perl |
|---|
| 2 | |
|---|
| 3 | use strict; |
|---|
| 4 | use warnings; |
|---|
| 5 | use App::Starter; |
|---|
| 6 | use Getopt::Long; |
|---|
| 7 | |
|---|
| 8 | my %opt; |
|---|
| 9 | GetOptions( \%opt, 'name=s' , 'template=s' ); |
|---|
| 10 | App::Starter->new( { template => $opt{template} , name => $opt{name} , replace => { app => $opt{name} , app_prefix => lc $opt{name} } } )->create; |
|---|
| 11 | |
|---|
| 12 | 1; |
|---|
| 13 | __END__ |
|---|
| 14 | |
|---|
| 15 | =head1 NAME |
|---|
| 16 | |
|---|
| 17 | app-starter-catalyst.pl - App::Starter script file for catalyst. |
|---|
| 18 | |
|---|
| 19 | =head1 SYNOPSIS |
|---|
| 20 | |
|---|
| 21 | app-starter-catalyst.pl --template --name MyApp |
|---|
| 22 | |
|---|
| 23 | =head1 DESCRIPTION |
|---|
| 24 | |
|---|
| 25 | automatically set rule for app app_prefix from --name options. |
|---|
| 26 | |
|---|
| 27 | =head1 SEE ALSO |
|---|
| 28 | |
|---|
| 29 | L<App::Starter> |
|---|
| 30 | |
|---|
| 31 | =head1 AUTHOR |
|---|
| 32 | |
|---|
| 33 | Tomohiro Teranishi |
|---|
| 34 | |
|---|
| 35 | =cut |
|---|
| 36 | |
|---|