Skip to content
Snippets Groups Projects
Commit dfe960c4 authored by Francois-Rene Rideau's avatar Francois-Rene Rideau
Browse files

Update README slightly with respect to INPUT, OUTPUT and ERROR-OUTPUT arguments.

parent a24d3d7d
No related branches found
No related tags found
No related merge requests found
...@@ -105,13 +105,17 @@ RUN CMD &KEY ON-ERROR TIME SHOW HOST OUTPUT ...@@ -105,13 +105,17 @@ RUN CMD &KEY ON-ERROR TIME SHOW HOST OUTPUT
on which to run the command using ssh if on which to run the command using ssh if
it's not an alias for localhost as recognized by CURRENT-HOST-NAME-P it's not an alias for localhost as recognized by CURRENT-HOST-NAME-P
(be sure to have passphraseless login using ssh-agent). (be sure to have passphraseless login using ssh-agent).
OUTPUT is one of The INPUT, OUTPUT and ERROR-OUTPUT arguments are as for UIOP:RUN-PROGRAM.
NIL (default) for inheriting the parent process's stdout, In particular, OUTPUT is as per UIOP:SLURP-OUTPUT-STREAM one of
NIL (default) for no output (redirect to /dev/null),
a stream for itself,
T for the current *standard-output*,
:INTERACTIVE for inheriting the parent process's stdout,
:LINES for returning one result per line, :LINES for returning one result per line,
:STRING for returning the output as one big string, :STRING for returning the output as one big string,
:STRING/STRIPPED is like :STRING :STRING/STRIPPED is like :STRING
but strips any line-ending at the end of the results, but strips any line-ending at the end of the results,
just like a shell's `cmd` or $(cmd) would do, just like a shell's `cmd` or $(cmd) would, and
more options are accepted and you can define your own, as per more options are accepted and you can define your own, as per
asdf-driver's slurp-input-stream protocol. asdf-driver's slurp-input-stream protocol.
On Windows, RUN will not succeed for pipes, only for simple commands. On Windows, RUN will not succeed for pipes, only for simple commands.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment