Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / bin / sgn_create.pl
blob521433f81f436a44b7163698d8bc3bb82d1fca0b
1 #!/usr/bin/env perl
3 use strict;
4 use warnings;
6 use Catalyst::ScriptRunner;
7 Catalyst::ScriptRunner->run('SGN', 'Create');
9 1;
11 =head1 NAME
13 sgn_create.pl - Create a new Catalyst Component
15 =head1 SYNOPSIS
17 sgn_create.pl [options] model|view|controller name [helper] [options]
19 Options:
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
24 Examples:
25 sgn_create.pl controller My::Controller
26 sgn_create.pl -mechanize controller My::Controller
27 sgn_create.pl view My::View
28 sgn_create.pl view MyView TT
29 sgn_create.pl view TT TT
30 sgn_create.pl model My::Model
31 sgn_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
32 dbi:SQLite:/tmp/my.db
33 sgn_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
34 dbi:Pg:dbname=foo root 4321
36 See also:
37 perldoc Catalyst::Manual
38 perldoc Catalyst::Manual::Intro
40 =head1 DESCRIPTION
42 Create a new Catalyst Component.
44 Existing component files are not overwritten. If any of the component files
45 to be created already exist the file will be written with a '.new' suffix.
46 This behavior can be suppressed with the C<-force> option.
48 =head1 AUTHORS
50 Catalyst Contributors, see Catalyst.pm
52 =head1 COPYRIGHT
54 This library is free software. You can redistribute it and/or modify
55 it under the same terms as Perl itself.
57 =cut