Skip to content

Commit

Permalink
added some search-terms to the platform category (#7021)
Browse files Browse the repository at this point in the history
* added some search-terms to the `platform` category

* removed the redundant `sleep` search-term

* removed the redundant `gradients` search-term
  • Loading branch information
1Kinoti committed Nov 6, 2022
1 parent 9a1cedf commit 8a812cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/nu-command/src/platform/ansi/ansi_.rs
Expand Up @@ -307,6 +307,10 @@ Format: #
]
}

fn search_terms(&self) -> Vec<&str> {
vec!["text-color", "text-style", "colors"]
}

fn run(
&self,
engine_state: &nu_protocol::engine::EngineState,
Expand Down
4 changes: 4 additions & 0 deletions crates/nu-command/src/platform/kill.rs
Expand Up @@ -43,6 +43,10 @@ impl Command for Kill {
)
}

fn search_terms(&self) -> Vec<&str> {
vec!["stop", "end", "close"]
}

fn run(
&self,
engine_state: &EngineState,
Expand Down
4 changes: 4 additions & 0 deletions crates/nu-command/src/platform/sleep.rs
Expand Up @@ -31,6 +31,10 @@ impl Command for Sleep {
.category(Category::Platform)
}

fn search_terms(&self) -> Vec<&str> {
vec!["delay", "wait", "timer"]
}

fn run(
&self,
engine_state: &EngineState,
Expand Down

0 comments on commit 8a812cf

Please sign in to comment.