mirror of
https://github.com/nushell/nushell.git
synced 2025-05-08 20:14:26 +02:00
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:
parent
453e294883
commit
2a8f92b709
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user