From 2a8f92b709b051629aed3efff9025ec9021fcbdf Mon Sep 17 00:00:00 2001 From: Bahex Date: Fri, 14 Feb 2025 15:29:45 +0300 Subject: [PATCH] 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 - :green_circle: toolkit fmt - :green_circle: toolkit clippy - :green_circle: toolkit test - :green_circle: 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> --- crates/nu-command/src/filters/chunks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/filters/chunks.rs b/crates/nu-command/src/filters/chunks.rs index 5149713644..bfac65e358 100644 --- a/crates/nu-command/src/filters/chunks.rs +++ b/crates/nu-command/src/filters/chunks.rs @@ -25,7 +25,7 @@ impl Command for Chunks { } 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 { @@ -33,7 +33,7 @@ impl Command for Chunks { } fn search_terms(&self) -> Vec<&str> { - vec!["batch", "group"] + vec!["batch", "group", "split", "bytes"] } fn examples(&self) -> Vec {