Remove DBIC deploy script, this should not be in core runtime
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Test.pm
index ed4ad64..4fe10c4 100644 (file)
@@ -4,10 +4,26 @@ use Pod::Usage;
 use FindBin;
 use lib "$FindBin::Bin/../lib";
 with 'MooseX::Getopt';
-use namespace::autoclean -except => [ qw(meta) ];
+use MooseX::Types::Moose qw/Str Bool/;
+use namespace::autoclean;
 
-has app  => ( isa => 'Str',    is => 'ro', required => 1 );
-has help => ( isa => 'Bool',   is => 'ro', required => 0, default => sub { 0 } );
+#extends qw(MooseX::App::Cmd);
+
+has _app => (
+    reader   => 'app',
+    init_arg => 'app',
+    traits => [qw(NoGetopt)],
+    isa => Str,
+    is => 'ro',
+);
+
+has help => (
+    traits => [qw(Getopt)],
+    cmd_aliases => 'h',
+    isa => Bool,
+    is => 'ro',
+    documentation => qq{ display this help and exits },
+);
 
 
 sub run {
@@ -21,4 +37,6 @@ sub run {
 
 }
 
+
+__PACKAGE__->meta->make_immutable;
 1;