Add search terms to many commands (#5096)

This commit is contained in:
Reilly Wood
2022-04-05 05:01:21 -07:00
committed by GitHub
parent fa6ed7a40b
commit 657b631fdc
17 changed files with 62 additions and 2 deletions

View File

@ -171,6 +171,10 @@ impl Command for Char {
"Output special characters (e.g., 'newline')."
}
fn search_terms(&self) -> Vec<&str> {
vec!["line break", "newline", "Unicode"]
}
fn examples(&self) -> Vec<Example> {
vec![
Example {

View File

@ -27,6 +27,10 @@ impl Command for SubCommand {
"downcases text"
}
fn search_terms(&self) -> Vec<&str> {
vec!["lower case", "lowercase"]
}
fn run(
&self,
engine_state: &EngineState,

View File

@ -24,6 +24,10 @@ impl Command for SubCommand {
"upcases text"
}
fn search_terms(&self) -> Vec<&str> {
vec!["uppercase", "upper case"]
}
fn run(
&self,
engine_state: &EngineState,