allonsy / currant

A simple rust library to concurrently spawn shell processes
MIT License
4 stars 1 forks source link

Omit space after omitted stream indicator #6

Closed kevgo closed 2 years ago

kevgo commented 2 years ago

When disabling the stream indicator, e.g. (o) or (e), it prints an extra space:

app1 : output

This PR changes it to this:

app1: output

I can't verify that this works due to lack of end-to-end tests, and this being a "stringly-typed" problem where Rust's strong typing doesn't help.

allonsy commented 2 years ago

@kevgo confirmed that this works. I ran it by using cargo run --example main_stdout. Remember that the examples directory contains a bunch of examples with a few different use cases

kevgo commented 2 years ago

Ah, I forgot that I can run the examples. This is so useful. Thanks for the reminder!