[Bps-public-commit] r16883 - in Prophet/trunk/lib/Prophet: CLI

jesse at bestpractical.com jesse at bestpractical.com
Mon Nov 17 17:35:40 EST 2008


Author: jesse
Date: Mon Nov 17 17:35:38 2008
New Revision: 16883

Modified:
   Prophet/trunk/lib/Prophet/CLI/Dispatcher.pm
   Prophet/trunk/lib/Prophet/Test.pm

Log:

* Don't autolaunch the shell in the core prophet cli app


Modified: Prophet/trunk/lib/Prophet/CLI/Dispatcher.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Dispatcher.pm	(original)
+++ Prophet/trunk/lib/Prophet/CLI/Dispatcher.pm	Mon Nov 17 17:35:38 2008
@@ -27,7 +27,7 @@
     my $self = shift;
     if ($self->context->has_arg('version')) { run_command("Version")->($self) }
     elsif( $self->context->has_arg('help') ){ run_command("Help")->($self) }
-    else { run_command('Shell')->($self) }
+    else { next_rule }
 };
 
 on [ ['create', 'new'] ]         => run_command("Create");

Modified: Prophet/trunk/lib/Prophet/Test.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Test.pm	(original)
+++ Prophet/trunk/lib/Prophet/Test.pm	Mon Nov 17 17:35:38 2008
@@ -193,7 +193,6 @@
 
 sub is_script_output {
     my ( $script, $arg, $exp_stdout, $exp_stderr, $msg ) = @_;
-
     local $Test::Builder::Level = $Test::Builder::Level + 1;
 
     my $stdout_err = [];



More information about the Bps-public-commit mailing list