From d40109f2100825635e6c2546325ac6931f121655 Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Sun, 3 Apr 2022 15:50:22 -0700 Subject: [PATCH] Tweak append+prepend help (#5080) --- crates/nu-command/src/filters/append.rs | 8 ++++++-- crates/nu-command/src/filters/prepend.rs | 12 ++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/crates/nu-command/src/filters/append.rs b/crates/nu-command/src/filters/append.rs index 48ac628ad5..51df71afae 100644 --- a/crates/nu-command/src/filters/append.rs +++ b/crates/nu-command/src/filters/append.rs @@ -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 { diff --git a/crates/nu-command/src/filters/prepend.rs b/crates/nu-command/src/filters/prepend.rs index 689b2a8fa9..d06cbc2426 100644 --- a/crates/nu-command/src/filters/prepend.rs +++ b/crates/nu-command/src/filters/prepend.rs @@ -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 {