aboutsummaryrefslogtreecommitdiff
path: root/runcap
AgeCommit message (Collapse)AuthorFiles
2024-03-14Allow to set environment for the command to be runSergey Poznyakoff1
* runcap: Update. * Capture.xs (capture_new): New argument: "env" (capture_set_env_ref, capture_env): New functions. * capture.c (free_argv): Change signature. All uses changed. (capture_new): Change signature. Optionally set rc_env. (capture_set_env_ref): New function. * capture.h (capture_new): Change signature. (capture_set_env_ref): New proto. * lib/POSIX/Run/Capture.pm: Document changes. * t/11env.t: New test.
2020-01-30Accept glob (file handle) or string (file name) with stderr and stdout ↵Sergey Poznyakoff1
keyword arguments * runcap: Upgrade. * Capture.xs: Pass stdout/stderr value without dereferencing it. * capture.h (line_closure): New member "fd". * capture.c (capture_set_output) (capture_close_output): New functions. (capture_new): Use capture_set_output. * lib/POSIX/Run/Capture.pm: Document changes. * Makefile.PL: Declare TEST_REQUIRES. * t/10file.t: New file.
2019-08-16Upgrade runcapSergey Poznyakoff1
2019-08-14Upgrade runcapSergey Poznyakoff1
* runcap: Upgrade. * t/09linemon.t: New test.
2017-12-01Update runcapSergey Poznyakoff1
2017-12-01Improve docsSergey Poznyakoff1
2017-09-27Pull recent bugfix from runcapSergey Poznyakoff1
2017-08-20Update runcapSergey Poznyakoff1
2017-07-22Add new methods for manipulating argv and program pathnameSergey Poznyakoff1
* Capture.xs (capture_new): Use new ARGV typedef. Handle the new "program" keyword. (capture_set_argv_ref, capture_set_program) (capture_argv, capture_program): New methods. * capture.c: Handle out of memory errors. (XS_pack_ARGV, XS_unpack_ARGV): New functions. (capture_new): Change signature. Set the rc_program field. (capture_DESTROY): Destroy cp->program (capture_set_argv_ref): New function. * capture.h (capture) <program>: New member. (ARGV): New typedef. (capture_new): Change signature. (XS_unpack_ARGV, XS_pack_ARGV) (capture_set_argv_ref): New protos. * lib/POSIX/Run/Capture.pm (set_argv): New method. * typemap: Hande ARGV conversions. * runcap: Update.
2017-07-21Write more tests.Sergey Poznyakoff1
* runcap: Update. * Makefile.PL (test): Generate custom subdirs-test_ rules. * capture.c (capture_new): Fix type checking. * t/POSIX-Run-Capture.t: Rename to t/00use.t * t/01simple.t: New file. * t/02lines.t: New file. * t/03two.t: New file. * t/TestCapture.pm: New file.
2017-07-20Initial commitSergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.