nushell/tests
Andrew Barnes a64e0956cd
Support binary data to stdin of run-external (#4984)
* Add test for passing binary data through externals

This change adds an ignored test to confirm that binary data is passed
correctly between externals to be enabled in a later commit along with
the fix.

To assist in platform agnostic testing of binary data a couple of
additional testbins were added to allow testing on `Value::Binary` inside
`ExternalStream`.

* Support binary data to stdin of run-external

Prior to this change, any pipeline producing binary data (not detected
as string) then feed into an external would be ignored due to
run-external only supporting `Value::String` on stdin.

This change adds binary stdin support for externals allowing something
like this for example:

  〉^cat /dev/urandom | ^head -c 1MiB | ^pv -b | ignore
  1.00MiB

This would previously output `0.00 B [0.00 B/s]` due to the data not
being pushed to stdin at each stage.
2022-03-27 15:35:59 +13:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
fixtures align all of the serde_json crates to the same version (#4949) 2022-03-25 18:54:49 +13:00
parsing Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
path Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
plugins Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
scope Fix reporting of which and $nu.scope (#4836) 2022-03-13 21:32:46 +02:00
shell Support binary data to stdin of run-external (#4984) 2022-03-27 15:35:59 +13:00
main.rs Fix reporting of which and $nu.scope (#4836) 2022-03-13 21:32:46 +02:00