Tweak append+prepend help (#5080)

This commit is contained in:
Reilly Wood 2022-04-03 15:50:22 -07:00 committed by GitHub
parent 20be8a4987
commit d40109f210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View File

@ -16,12 +16,16 @@ impl Command for Append {
fn signature(&self) -> nu_protocol::Signature {
Signature::build("append")
.required("row", SyntaxShape::Any, "the row to append")
.required("row", SyntaxShape::Any, "the row, list, or table to append")
.category(Category::Filters)
}
fn usage(&self) -> &str {
"Append a row to the table."
"Append any number of rows to a table."
}
fn search_terms(&self) -> Vec<&str> {
vec!["concatenate"]
}
fn examples(&self) -> Vec<Example> {

View File

@ -16,12 +16,20 @@ impl Command for Prepend {
fn signature(&self) -> nu_protocol::Signature {
Signature::build("prepend")
.required("row", SyntaxShape::Any, "the row to prepend")
.required(
"row",
SyntaxShape::Any,
"the row, list, or table to prepend",
)
.category(Category::Filters)
}
fn usage(&self) -> &str {
"Prepend a row to the table."
"Prepend any number of rows to a table."
}
fn search_terms(&self) -> Vec<&str> {
vec!["concatenate"]
}
fn examples(&self) -> Vec<Example> {