docs(chunks): make chunks easier to discover for binary data (#15117)

# Description
There has been multiple instances of users being unable to discover that
`chunks` can be used with binary data.
This should make it easier for users to discover that (using `help -f`).

# User-Facing Changes
Help text of `chunks` updated as mentioned above.

# Tests + Formatting

- 🟢 toolkit fmt
- 🟢 toolkit clippy
- 🟢 toolkit test
- 🟢 toolkit test stdlib

# After Submitting

Should we consider mentioning commands that can work with binary input
(first, take, chunks, etc) in the help text for `bytes`?

Co-authored-by: Bahex <17417311+Bahex@users.noreply.github.com>
This commit is contained in:
Bahex 2025-02-14 15:29:45 +03:00 committed by GitHub
parent 453e294883
commit 2a8f92b709
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ impl Command for Chunks {
} }
fn description(&self) -> &str { fn description(&self) -> &str {
"Divide a list or table into chunks of `chunk_size`." "Divide a list, table or binary input into chunks of `chunk_size`."
} }
fn extra_description(&self) -> &str { fn extra_description(&self) -> &str {
@ -33,7 +33,7 @@ impl Command for Chunks {
} }
fn search_terms(&self) -> Vec<&str> { fn search_terms(&self) -> Vec<&str> {
vec!["batch", "group"] vec!["batch", "group", "split", "bytes"]
} }
fn examples(&self) -> Vec<Example> { fn examples(&self) -> Vec<Example> {