You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is an issue with &mut builders (we can't chain off the original cmd), assuming with_stdin will act like &mut builder function when in reality you should only be acting on it at that point, etc.
Note: The lib.rs documentation still has the broken approach
The text was updated successfully, but these errors were encountered:
Many of our problems with `stdin` are derived from using extension
traits. By moving away from them, we fix the API problems and make it
easier to add other features like timeout (assert-rs#10) or signalling (assert-rs#84).
So the new philosphy if:
- Core functionality is provided by extension traits
- Provide a convinience API that makes `Command` friendlier. These do
not need to be generalized. Other abstractions can provide their own
(like `duct`).
Fixesassert-rs#73
Based on #71
The automatic reaction is to write something like
When you really need to write
The problem is an issue with
&mut
builders (we can't chain off the originalcmd
), assumingwith_stdin
will act like&mut
builder function when in reality you should only be acting on it at that point, etc.Note: The
lib.rs
documentation still has the broken approachThe text was updated successfully, but these errors were encountered: