14 'nonew|force' => \$force,
15 'mech|mechanize' => \$mech,
19 pod2usage(1) if ( $help || !$ARGV[0] );
21 my $helper = Catalyst::Helper->new( { '.newfiles' => !$force, mech => $mech } );
23 pod2usage(1) unless $helper->mk_component( 'ComponentUI', @ARGV );
29 componentui_create.pl - Create a new Catalyst Component
33 componentui_create.pl [options] model|view|controller name [helper] [options]
36 -force don't create a .new file where a file to be created exists
37 -mechanize use Test::WWW::Mechanize::Catalyst for tests if available
38 -help display this help and exits
41 componentui_create.pl controller My::Controller
42 componentui_create.pl -mechanize controller My::Controller
43 componentui_create.pl view My::View
44 componentui_create.pl view MyView TT
45 componentui_create.pl view TT TT
46 componentui_create.pl model My::Model
47 componentui_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
49 componentui_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
50 dbi:Pg:dbname=foo root 4321
53 perldoc Catalyst::Manual
54 perldoc Catalyst::Manual::Intro
58 Create a new Catalyst Component.
60 Existing component files are not overwritten. If any of the component files
61 to be created already exist the file will be written with a '.new' suffix.
62 This behavior can be suppressed with the C<-force> option.
66 Sebastian Riedel, C<sri@oook.de>
67 Maintained by the Catalyst Core Team.
71 This library is free software, you can redistribute it and/or modify
72 it under the same terms as Perl itself.