mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 23:49:44 +01:00
Modify the bits command in nu-cmd-extra to improve visibility (#9516)
In the spirit of #9509 we are changing the visibility of the bits commands to align with the way they are correctly done in the bytes commands... Thanks to @sholderbach for pointing out this nice improvement to me in my PR earlier in the day... ```rust mod and; mod bits_; mod not; mod or; mod rotate_left; mod rotate_right; mod shift_left; mod shift_right; mod xor; ```
This commit is contained in:
parent
761946c522
commit
14daa93a19
@ -1,12 +1,22 @@
|
||||
pub(crate) mod and;
|
||||
pub(crate) mod bits_;
|
||||
pub(crate) mod not;
|
||||
pub(crate) mod or;
|
||||
pub(crate) mod rotate_left;
|
||||
pub(crate) mod rotate_right;
|
||||
pub(crate) mod shift_left;
|
||||
pub(crate) mod shift_right;
|
||||
pub(crate) mod xor;
|
||||
mod and;
|
||||
mod bits_;
|
||||
mod not;
|
||||
mod or;
|
||||
mod rotate_left;
|
||||
mod rotate_right;
|
||||
mod shift_left;
|
||||
mod shift_right;
|
||||
mod xor;
|
||||
|
||||
pub use and::BitsAnd;
|
||||
pub use bits_::Bits;
|
||||
pub use not::BitsNot;
|
||||
pub use or::BitsOr;
|
||||
pub use rotate_left::BitsRol;
|
||||
pub use rotate_right::BitsRor;
|
||||
pub use shift_left::BitsShl;
|
||||
pub use shift_right::BitsShr;
|
||||
pub use xor::BitsXor;
|
||||
|
||||
use nu_protocol::Spanned;
|
||||
|
||||
|
@ -1,6 +1,16 @@
|
||||
mod bits;
|
||||
mod bytes;
|
||||
|
||||
pub use bits::Bits;
|
||||
pub use bits::BitsAnd;
|
||||
pub use bits::BitsNot;
|
||||
pub use bits::BitsOr;
|
||||
pub use bits::BitsRol;
|
||||
pub use bits::BitsRor;
|
||||
pub use bits::BitsShl;
|
||||
pub use bits::BitsShr;
|
||||
pub use bits::BitsXor;
|
||||
|
||||
pub use bytes::Bytes;
|
||||
pub use bytes::BytesAdd;
|
||||
pub use bytes::BytesAt;
|
||||
@ -30,15 +40,15 @@ pub fn add_extra_command_context(mut engine_state: EngineState) -> EngineState {
|
||||
}
|
||||
|
||||
bind_command! {
|
||||
bits::bits_::Bits,
|
||||
bits::and::BitsAnd,
|
||||
bits::not::BitsNot,
|
||||
bits::or::BitsOr,
|
||||
bits::xor::BitsXor,
|
||||
bits::rotate_left::BitsRol,
|
||||
bits::rotate_right::BitsRor,
|
||||
bits::shift_left::BitsShl,
|
||||
bits::shift_right::BitsShr
|
||||
Bits,
|
||||
BitsAnd,
|
||||
BitsNot,
|
||||
BitsOr,
|
||||
BitsXor,
|
||||
BitsRol,
|
||||
BitsRor,
|
||||
BitsShl,
|
||||
BitsShr
|
||||
}
|
||||
|
||||
// Bytes
|
||||
|
Loading…
Reference in New Issue
Block a user