| 1 | # | ||
| 2 | # Copyright (c) 2015 Christian Jaeger, copying@christianjaeger.ch | ||
| 3 | # | ||
| 4 | # This is free software, offered under either the same terms as perl 5 | ||
| 5 | # or the terms of the Artistic License version 2 or the terms of the | ||
| 6 | # MIT License (Expat version). See the file COPYING.md that came | ||
| 7 | # bundled with this file. | ||
| 8 | # | ||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | Chj::IO::PipelessCommand | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | use Chj::IO::PipelessCommand; | ||
| 17 | use Chj::xopen qw(xopen_read); | ||
| 18 | use Chj::xtmpfile; | ||
| 19 | |||
| 20 | my $in = xopen_read $inpath; | ||
| 21 | my $out = xtmpfile $outpath; | ||
| 22 | my $c = Chj::IO::PipelessCommand | ||
| 23 | ->new_with_in_out ($in,$out, $path, @args); | ||
| 24 | # $c can't be read from or written to. | ||
| 25 | $c->xxfinish; | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | |||
| 30 | =head1 NOTE | ||
| 31 | |||
| 32 | This is alpha software! Read the status section in the package README | ||
| 33 | or on the L<website|http://functional-perl.org/>. | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||
| 37 | package Chj::IO::PipelessCommand; | ||
| 38 | |||
| 39 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 40 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | 1 | ▶ | use warnings FATAL => 'uninitialized'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 42 | |||
| 43 | 1 | ▶ | use base qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 44 | Chj::IO::CommandCommon | ||
| 45 | 1 | ); | |
| 46 | |||
| 47 | 0 | ▶ | sub new_with_in_out { |
|
Subroutine
new_with_in_out: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 48 | 0 | my $class = shift; | |
| 49 | 0 | my $infh = shift; | |
| 50 | 0 | my $outfh = shift; | |
| 51 | 0 | my $self = bless {}, $class; | |
| 52 | 0 | $self->xlaunch3($infh, $outfh, undef, @_); | |
| 53 | } | ||
| 54 | |||
| 55 | # override as NOOPs | ||
| 56 | 0 | ▶ | sub close { } |
|
Subroutine
close: not called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 57 | 0 | ▶ | sub xclose { } |
|
Subroutine
xclose: not called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 58 | |||
| 59 | 1 | 1 | |