mirror of
https://github.com/nushell/nushell.git
synced 2024-11-28 19:33:47 +01:00
Added search terms to if
(#13145)
# Description In this PR, I continue my tradition of trivial but hopefully helpful `help` tweaks. As mentioned in #13143, I noticed that `help -f else` oddly didn't return the `if` statement itself. Perhaps not so oddly, since who the heck is going to go looking for *"else"* in the help? Well, I did ... Added *"else"* and *"conditional"* to the search terms for `if`. I'll work on the meat of #13143 next - That's more substantiative. # User-Facing Changes Help only # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` - # After Submitting <!-- If your PR had any user-facing changes, update [the documentation](https://github.com/nushell/nushell.github.io) after the PR is merged, if necessary. This will help us keep the docs up to date. -->
This commit is contained in:
parent
323d5457f9
commit
af6e1cb5a6
@ -122,6 +122,10 @@ impl Command for If {
|
||||
}
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["else", "conditional"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![
|
||||
Example {
|
||||
|
Loading…
Reference in New Issue
Block a user