~mclehman/guestctl

749df6d1b5b6174a5e39ea0dbfd2688af70a6d02 — 0xFORDCOMMA 4 years ago 20a3910
Clarify transparent-run printing reasoning.
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/App/Guestctl/Utils.pm6
M lib/App/Guestctl/Utils.pm6 => lib/App/Guestctl/Utils.pm6 +1 -1
@@ 6,8 6,8 @@ use App::Guestctl::Common;
sub transparent-run(*@run-args, :$cwd = $*CWD, :$proceed = False) is export {
    my $proc = Proc::Async.new: |@run-args;
    react {
        # Supply is chunked, not line-based, so we can't just .say/.note each time.
        whenever $proc.stdout { .print }
        # Supply is chunked, not line-based, so we can't just .note each time.
        whenever $proc.stderr { $*ERR.print: $_ }
        # Start the process, setting a working directory if specified. Await process and optionally replay exit code.
        whenever $proc.start: :$cwd {