/[Frey]/trunk/lib/Frey/Shell/Grep.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Shell/Grep.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 669 by dpavlin, Tue Dec 2 00:26:03 2008 UTC revision 670 by dpavlin, Tue Dec 2 01:16:20 2008 UTC
# Line 8  with 'Frey::Web'; Line 8  with 'Frey::Web';
8  use English;  use English;
9    
10  has pattern => (  has pattern => (
11          documentation => 'grep for pattern',          documentation => 'grep pattern',
12          is => 'rw',          is => 'rw',
13          isa => 'Str',          isa => 'Str',
14          required => 1,          required => 1,
# Line 42  sub as_markup { Line 42  sub as_markup {
42          open(my $fh, '-|', $cmd) || die "can't open pipe to $cmd $!";          open(my $fh, '-|', $cmd) || die "can't open pipe to $cmd $!";
43          while(<$fh>) {          while(<$fh>) {
44                  my ( $path, $line, $text ) = split(/:/,$_,3);                  my ( $path, $line, $text ) = split(/:/,$_,3);
45                    $text = $self->html_escape( $text );
46                  if ( $path ne $last_path ) {                  if ( $path ne $last_path ) {
47                          $html .= qq|<dt>$path</dt>|;                          $html .= qq|<dt>$path</dt>|;
48                  }                  }

Legend:
Removed from v.669  
changed lines
  Added in v.670

  ViewVC Help
Powered by ViewVC 1.1.26