Tweak append+prepend help (#5080)
This commit is contained in:
parent
20be8a4987
commit
d40109f210
|
@ -16,12 +16,16 @@ impl Command for Append {
|
||||||
|
|
||||||
fn signature(&self) -> nu_protocol::Signature {
|
fn signature(&self) -> nu_protocol::Signature {
|
||||||
Signature::build("append")
|
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)
|
.category(Category::Filters)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn usage(&self) -> &str {
|
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> {
|
fn examples(&self) -> Vec<Example> {
|
||||||
|
|
|
@ -16,12 +16,20 @@ impl Command for Prepend {
|
||||||
|
|
||||||
fn signature(&self) -> nu_protocol::Signature {
|
fn signature(&self) -> nu_protocol::Signature {
|
||||||
Signature::build("prepend")
|
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)
|
.category(Category::Filters)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn usage(&self) -> &str {
|
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> {
|
fn examples(&self) -> Vec<Example> {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user