From: Tomas Doran Date: Thu, 26 Nov 2009 23:22:25 +0000 (+0000) Subject: Actually switch the create script to new script style. Testing I did yesterday obviou... X-Git-Tag: 1.21_01~1^2~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Devel.git;a=commitdiff_plain;h=84e768f1da0ec0f8e724fd5f56402b1d1dfe0ce3 Actually switch the create script to new script style. Testing I did yesterday obviously lies --- diff --git a/share/script/myapp_create.pl.tt b/share/script/myapp_create.pl.tt index cb5a19c..63543d7 100644 --- a/share/script/myapp_create.pl.tt +++ b/share/script/myapp_create.pl.tt @@ -2,37 +2,9 @@ use strict; use warnings; -use Getopt::Long; -use Pod::Usage; -eval "use Catalyst::Helper;"; -if ($@) { - die < \$force, - 'mech|mechanize' => \$mech, - 'help|?' => \$help - ); - -pod2usage(1) if ( $help || !$ARGV[0] ); - -my $helper = Catalyst::Helper->new( { '.newfiles' => !$force, mech => $mech } ); - -pod2usage(1) unless $helper->mk_component( '[% name %]', @ARGV ); +use Catalyst::ScriptRunner; +Catalyst::ScriptRunner->run('[% name %]', 'Create'); 1;