nushell/crates/nu-cmd-extra/src/extra/bits
moonlander d3895d71db
add binary data handling to bits commands (#11854)
# Description
- enables `bits` commands to operate on binary data, where both inputs
are binary and can vary in length
- adds an `--endian` flag to `bits and`, `or`, `xor` for specifying
endianness (for binary values of different lengths)

# User-Facing Changes
- `bits` commands will no longer error for non-int inputs
- the default for `--number-bytes` is now `auto` (infer int size;
changed from 8)

# Tests + Formatting
> addendum: first PR, please inform if any changes are needed
2024-02-28 20:43:50 +08:00
..
and.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00
bits_.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
into.rs Use int type name consistently (#10579) 2023-10-03 18:24:32 +02:00
mod.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00
not.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00
or.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00
rotate_left.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00
rotate_right.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00
shift_left.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00
shift_right.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00
xor.rs add binary data handling to bits commands (#11854) 2024-02-28 20:43:50 +08:00