From 04551f887783454fc10778246012842f529f9c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Mon, 10 Apr 2023 20:51:09 +0200 Subject: [PATCH] Document process-send/recv. --- doc/utils.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/utils.md b/doc/utils.md index 5b04680..ed105d8 100644 --- a/doc/utils.md +++ b/doc/utils.md @@ -158,6 +158,16 @@ UTF-8 BOM, removes it. Returns a list of strings representing all the lines produced by running the command given. + (process-send/recv cmd args . lines) + +* ```cmd``` - a string with command +* ```args``` - list of arguments +* ```lines``` - lines to feed to stdin of the process + +Executes given command ```cmd``` with given argument list ```args``` +writing all ```lines``` to its standard input and then reads all the +process output. + ### List (import util-list)