added some search-terms to the platform category (#7021)

* added some search-terms to the `platform` category

* removed the redundant `sleep` search-term

* removed the redundant `gradients` search-term
This commit is contained in:
mike 2022-11-06 20:11:04 +03:00 committed by GitHub
parent 9a1cedfd08
commit 8a812cf03c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -307,6 +307,10 @@ Format: #
] ]
} }
fn search_terms(&self) -> Vec<&str> {
vec!["text-color", "text-style", "colors"]
}
fn run( fn run(
&self, &self,
engine_state: &nu_protocol::engine::EngineState, engine_state: &nu_protocol::engine::EngineState,

View file

@ -43,6 +43,10 @@ impl Command for Kill {
) )
} }
fn search_terms(&self) -> Vec<&str> {
vec!["stop", "end", "close"]
}
fn run( fn run(
&self, &self,
engine_state: &EngineState, engine_state: &EngineState,

View file

@ -31,6 +31,10 @@ impl Command for Sleep {
.category(Category::Platform) .category(Category::Platform)
} }
fn search_terms(&self) -> Vec<&str> {
vec!["delay", "wait", "timer"]
}
fn run( fn run(
&self, &self,
engine_state: &EngineState, engine_state: &EngineState,