forked from extern/nushell
Add search terms for describe
(#5644)
This commit is contained in:
parent
727ff5f2d4
commit
3b8deb9ec7
@ -13,7 +13,7 @@ impl Command for Describe {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn usage(&self) -> &str {
|
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 {
|
fn signature(&self) -> Signature {
|
||||||
@ -55,6 +55,10 @@ impl Command for Describe {
|
|||||||
result: Some(Value::test_string("string")),
|
result: Some(Value::test_string("string")),
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
|
vec!["type", "typeof", "info", "structure"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
Reference in New Issue
Block a user