[Bps-public-commit] r12221 - in sd/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Sat May 10 21:23:15 EDT 2008


Author: sartak
Date: Sat May 10 21:23:15 2008
New Revision: 12221

Modified:
   sd/trunk/   (props changed)
   sd/trunk/Makefile.PL
   sd/trunk/bin/sd

Log:
 r55533 at onn:  sartak | 2008-05-10 21:23:11 -0400
 Use edit_text instead of hand-calling Proc::InvokeEditor


Modified: sd/trunk/Makefile.PL
==============================================================================
--- sd/trunk/Makefile.PL	(original)
+++ sd/trunk/Makefile.PL	Sat May 10 21:23:15 2008
@@ -6,7 +6,6 @@
 version_from('lib/App/SD.pm');
 
 requires 'Prophet'; # URI UNIVERSAL::require Params::Validate Path::Class Class::Accessor
-requires 'Proc::InvokeEditor';
 requires 'RT::Client::REST'; # RT::Client::REST::Ticket
 requires 'DateTime::Format::HTTP';
 

Modified: sd/trunk/bin/sd
==============================================================================
--- sd/trunk/bin/sd	(original)
+++ sd/trunk/bin/sd	Sat May 10 21:23:15 2008
@@ -25,8 +25,7 @@
     } elsif ($content = delete $self->args->{'content'}) {
 
     } elsif (exists $self->args->{'edit'}) {
-        require Proc::InvokeEditor;
-        $content = Proc::InvokeEditor->edit;
+        $content = $self->edit_text('');
     } else {
         print "Please type your $type and press ctrl-d.\n";
         $content = do { local $/; <> };



More information about the Bps-public-commit mailing list