Files
nushell/crates/nu-protocol/src
Ian Manske c5d716951f Allow byte streams with unknown type to be compatiable with binary (#12959)
# Description
Currently, this pipeline doesn't work `open --raw file | take 100`,
since the type of the byte stream is `Unknown`, but `take` expects
`Binary` streams. This PR changes commands that expect
`ByteStreamType::Binary` to also work with `ByteStreamType::Unknown`.
This was done by adding two new methods to `ByteStreamType`:
`is_binary_coercible` and `is_string_coercible`. These return true if
the type is `Unknown` or matches the type in the method name.
2024-05-24 17:54:38 -07:00
..
2024-05-16 22:34:49 +00:00
2024-05-03 16:14:13 -05:00
2024-05-05 16:00:59 +00:00
2024-05-16 22:34:49 +00:00
2024-04-24 15:46:35 +00:00