From 3b8deb9ec703336e9a6ee8ac8dfb176e1d30cbba Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Thu, 26 May 2022 15:11:45 +0200 Subject: [PATCH] Add search terms for `describe` (#5644) --- crates/nu-command/src/core_commands/describe.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/core_commands/describe.rs b/crates/nu-command/src/core_commands/describe.rs index d1d3080453..88b7a1dffa 100644 --- a/crates/nu-command/src/core_commands/describe.rs +++ b/crates/nu-command/src/core_commands/describe.rs @@ -13,7 +13,7 @@ impl Command for Describe { } fn usage(&self) -> &str { - "Describe the value(s) piped in." + "Describe the type and structure of the value(s) piped in." } fn signature(&self) -> Signature { @@ -55,6 +55,10 @@ impl Command for Describe { result: Some(Value::test_string("string")), }] } + + fn search_terms(&self) -> Vec<&str> { + vec!["type", "typeof", "info", "structure"] + } } #[cfg(test)]