Actually switch the create script to new script style. Testing I did yesterday obviou...
[catagits/Catalyst-Devel.git] / share / script / myapp_create.pl.tt
CommitLineData
239b5fc0 1[% startperl %]
2
3use strict;
4use warnings;
239b5fc0 5
84e768f1 6use Catalyst::ScriptRunner;
7Catalyst::ScriptRunner->run('[% name %]', 'Create');
239b5fc0 8
91;
10
11=head1 NAME
12
13[% appprefix %]_create.pl - Create a new Catalyst Component
14
15=head1 SYNOPSIS
16
17[% appprefix %]_create.pl [options] model|view|controller name [helper] [options]
18
19 Options:
a363c0aa 20 --force don't create a .new file where a file to be created exists
21 --mechanize use Test::WWW::Mechanize::Catalyst for tests if available
22 --help display this help and exits
239b5fc0 23
24 Examples:
25 [% appprefix %]_create.pl controller My::Controller
26 [% appprefix %]_create.pl -mechanize controller My::Controller
27 [% appprefix %]_create.pl view My::View
28 [% appprefix %]_create.pl view MyView TT
29 [% appprefix %]_create.pl view TT TT
30 [% appprefix %]_create.pl model My::Model
31 [% appprefix %]_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
32 dbi:SQLite:/tmp/my.db
33 [% appprefix %]_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
34 dbi:Pg:dbname=foo root 4321
35
36 See also:
37 perldoc Catalyst::Manual
38 perldoc Catalyst::Manual::Intro
39
40=head1 DESCRIPTION
41
42Create a new Catalyst Component.
43
44Existing component files are not overwritten. If any of the component files
45to be created already exist the file will be written with a '.new' suffix.
46This behavior can be suppressed with the C<-force> option.
47
48=head1 AUTHORS
49
50Catalyst Contributors, see Catalyst.pm
51
52=head1 COPYRIGHT
53
54This library is free software. You can redistribute it and/or modify
55it under the same terms as Perl itself.
56
57=cut