move 'bytes' back to commands (#10051)

# Description

Moves the `bytes XXXX` commands back to the default set.
This commit is contained in:
JT 2023-08-20 08:43:53 +12:00 committed by GitHub
parent 028a327ce8
commit 2ae1de2470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 18 additions and 30 deletions

View File

@ -1,5 +1,4 @@
mod bits;
mod bytes;
mod conversions;
mod filters;
mod formats;
@ -7,19 +6,6 @@ mod math;
mod platform;
mod strings;
pub use bytes::Bytes;
pub use bytes::BytesAdd;
pub use bytes::BytesAt;
pub use bytes::BytesBuild;
pub use bytes::BytesCollect;
pub use bytes::BytesEndsWith;
pub use bytes::BytesIndexOf;
pub use bytes::BytesLen;
pub use bytes::BytesRemove;
pub use bytes::BytesReplace;
pub use bytes::BytesReverse;
pub use bytes::BytesStartsWith;
pub use bits::Bits;
pub use bits::BitsAnd;
pub use bits::BitsInto;
@ -111,22 +97,6 @@ pub fn add_extra_command_context(mut engine_state: EngineState) -> EngineState {
BitsXor
}
// Bytes
bind_command! {
Bytes,
BytesLen,
BytesStartsWith,
BytesEndsWith,
BytesReverse,
BytesReplace,
BytesAdd,
BytesAt,
BytesIndexOf,
BytesCollect,
BytesRemove,
BytesBuild
}
// Math
bind_command! {
MathArcSin,

View File

@ -325,6 +325,22 @@ pub fn add_shell_command_context(mut engine_state: EngineState) -> EngineState {
MathLog,
};
// Bytes
bind_command! {
Bytes,
BytesLen,
BytesStartsWith,
BytesEndsWith,
BytesReverse,
BytesReplace,
BytesAdd,
BytesAt,
BytesIndexOf,
BytesCollect,
BytesRemove,
BytesBuild
}
// Network
bind_command! {
Http,

View File

@ -1,3 +1,4 @@
mod bytes;
mod charting;
mod conversions;
mod date;
@ -27,6 +28,7 @@ mod strings;
mod system;
mod viewers;
pub use bytes::*;
pub use charting::*;
pub use conversions::*;
pub use date::*;