Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bytes split command #14652

Merged
merged 4 commits into from
Dec 25, 2024
Merged

Add bytes split command #14652

merged 4 commits into from
Dec 25, 2024

Conversation

Bahex
Copy link
Contributor

@Bahex Bahex commented Dec 21, 2024

Related #10708

Description

Add bytes split command. bytes split splits its input on the provided separator on binary values and binary streams without collecting. The separator can be a multiple character string or multiple byte binary.

It can be used when neither split row (not streaming over raw input) nor lines (streaming, but can only split on newlines) is right.

The backing iterator implemented in this PR, SplitRead, can be used to implement a streaming split row in the future.

User-Facing Changes

bytes split command added, which can be used to split binary values and raw streams using a separator.

Tests + Formatting

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🟢 toolkit test
  • 🟢 toolkit test stdlib

After Submitting

Mention in release notes.

@Bahex Bahex changed the title Bytes split Add bytes split command Dec 21, 2024
@fdncred fdncred added wait-until-after-nushell-release new-command pr:commands This PR changes our commands in some way labels Dec 21, 2024
@fdncred
Copy link
Collaborator

fdncred commented Dec 25, 2024

please fix the conflicts and we can land this

@Bahex
Copy link
Contributor Author

Bahex commented Dec 25, 2024

It's ready

@fdncred fdncred merged commit 469e23c into nushell:main Dec 25, 2024
16 checks passed
@fdncred
Copy link
Collaborator

fdncred commented Dec 25, 2024

Thanks

@github-actions github-actions bot added this to the v0.102.0 milestone Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants