Open agrare opened 3 years ago
As discussed, I like the AwesomeSpawn.pipe().pipe().run
style.
:out
and :err
are the existing param names for Kernel spawn, so I'd like to match that (also :in
, and we should deprecate :in_data
and prefer :stdin_data
:+1: I'll update the examples
Unix pipes and redirects are obviously extremely powerful for chaining multiple commands together, being able to support this nicely in AwesomeSpawn combined with AwesomeSpawn's CLI builder to prevent command injection.
Wishlist:
stdin
,stdout
, andstderr
for a process. AllowString
,File
/IO
for stdin,File
/IO
forstdout
/stderr
.Using pipes to write to a process'
stdin
is a great way to securely provide a password without it showing up in ENV vars, and giving the calling process'$stdout
as the subcommandsstdout
allows for realtime output without waiting for the possibly long running command to finishstdout
from one tostdin
of the nextSome bash examples that we should be able to do easily with AwesomeSpawn: