[Bps-public-commit] r10139 - bpsbuilder/BPB/lib/BPB/Script

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Dec 27 02:17:57 EST 2007


Author: sunnavy
Date: Thu Dec 27 02:17:57 2007
New Revision: 10139

Modified:
   bpsbuilder/BPB/lib/BPB/Script/Build.pm
   bpsbuilder/BPB/lib/BPB/Script/Export.pm
   bpsbuilder/BPB/lib/BPB/Script/Help.pm
   bpsbuilder/BPB/lib/BPB/Script/Import.pm
   bpsbuilder/BPB/lib/BPB/Script/Initialize.pm

Log:
added help stuff for cli

Modified: bpsbuilder/BPB/lib/BPB/Script/Build.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Script/Build.pm	(original)
+++ bpsbuilder/BPB/lib/BPB/Script/Build.pm	Thu Dec 27 02:17:57 2007
@@ -36,6 +36,20 @@
 
 __END__
 
+=head1 NAME
+
+BPB::Script::Build - build the specified project
+
+=head1 SYNOPSIS
+
+  bpb build           build a project
+
+ Options:
+   --config(-c)       specify which config.yml we'll use
+   --name(-n)         specify the project's name
+   --install-base(-i) specify install base. overide the item in config.yml
+   --skip-test        skip test. overide the item in config.yml too
+
 =head1 AUTHOR
 
 sunnavy  C<< <sunnavy at bestpractical.com> >>

Modified: bpsbuilder/BPB/lib/BPB/Script/Export.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Script/Export.pm	(original)
+++ bpsbuilder/BPB/lib/BPB/Script/Export.pm	Thu Dec 27 02:17:57 2007
@@ -29,6 +29,19 @@
 
 __END__
 
+=head1 NAME
+
+BPB::Script::Export - export the specified project
+
+=head1 SYNOPSIS
+
+  bpb export          export a project
+
+ Options:
+   --config(-c)       specify which config.yml we'll use
+   --name(-n)         specify the project's name
+   --target(-t)       specify where the export will live
+
 =head1 AUTHOR
 
 sunnavy  C<< <sunnavy at bestpractical.com> >>

Modified: bpsbuilder/BPB/lib/BPB/Script/Help.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Script/Help.pm	(original)
+++ bpsbuilder/BPB/lib/BPB/Script/Help.pm	Thu Dec 27 02:17:57 2007
@@ -5,3 +5,25 @@
 use base 'App::CLI::Command::Help';
 
 1;
+
+__END__
+
+=head1 NAME
+
+BPB::Script::Help - show help
+
+=head1 SYNOPSIS
+
+  bpb help COMMAND    show help
+
+=head1 AUTHOR
+
+sunnavy  C<< <sunnavy at bestpractical.com> >>
+    
+
+=head1 LICENCE AND COPYRIGHT
+
+Copyright 2007 Best Practical Solutions.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.

Modified: bpsbuilder/BPB/lib/BPB/Script/Import.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Script/Import.pm	(original)
+++ bpsbuilder/BPB/lib/BPB/Script/Import.pm	Thu Dec 27 02:17:57 2007
@@ -40,8 +40,8 @@
 
     $self->source( $bpb->source->run );
 
-    copy( $self->build_script, File::Spec->catfile( $self->source, '__build' ))
-        if $self->build_script;
+    copy( $self->build_script, File::Spec->catfile( $self->source, '__build' ) )
+      if $self->build_script;
 
     $self->import_req( $self->source, $bpb );
     $bpb->backend->import( map { $_, $self->$_ } qw/comment source/ );
@@ -102,6 +102,22 @@
 
 __END__
 
+=head1 NAME
+
+BPB::Script::Import - import a source
+
+=head1 SYNOPSIS
+
+  bpb import          import a source
+
+ Options:
+   --config(-c)       specify which config.yml we'll use
+   --name(-n)         specify the project's name
+   --comment(-m)      specify the comment
+   --source(-s)       specify the source path
+   --build-script     specify the build script
+   --no-follow        don't follow
+
 =head1 AUTHOR
 
 sunnavy  C<< <sunnavy at bestpractical.com> >>

Modified: bpsbuilder/BPB/lib/BPB/Script/Initialize.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Script/Initialize.pm	(original)
+++ bpsbuilder/BPB/lib/BPB/Script/Initialize.pm	Thu Dec 27 02:17:57 2007
@@ -31,11 +31,22 @@
 
 __END__
 
+=head1 NAME
+
+BPB::Script::Initialize - create the specified project
+
+=head1 SYNOPSIS
+
+  bpb create          create a project
+
+ Options:
+   --config(-c)       specify which config.yml we'll use
+   --name(-n)         specify the project's name
+
 =head1 AUTHOR
 
 sunnavy  C<< <sunnavy at bestpractical.com> >>
 
-
 =head1 LICENCE AND COPYRIGHT
 
 Copyright 2007 Best Practical Solutions.



More information about the Bps-public-commit mailing list