Add "regex" search term to commands with regex functionality (#9402)

Just makes it easier to find these commands when using the `help` system
- the `find` command already has the "regex" search term.

Co-authored-by: ja_cop <ja_cop@hoshi>
This commit is contained in:
ja-cop 2023-06-11 00:02:00 +02:00 committed by GitHub
parent e9508b578a
commit 9c84c01aef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ impl Command for Parse {
}
fn search_terms(&self) -> Vec<&str> {
vec!["pattern", "match"]
vec!["pattern", "match", "regex"]
}
fn signature(&self) -> nu_protocol::Signature {

View file

@ -45,7 +45,7 @@ impl Command for SubCommand {
}
fn search_terms(&self) -> Vec<&str> {
vec!["separate", "divide"]
vec!["separate", "divide", "regex"]
}
fn run(

View file

@ -38,7 +38,7 @@ impl Command for SubCommand {
}
fn search_terms(&self) -> Vec<&str> {
vec!["separate", "divide"]
vec!["separate", "divide", "regex"]
}
fn run(

View file

@ -38,7 +38,7 @@ impl Command for SubCommand {
}
fn search_terms(&self) -> Vec<&str> {
vec!["separate", "divide"]
vec!["separate", "divide", "regex"]
}
fn run(

View file

@ -61,7 +61,7 @@ impl Command for SubCommand {
}
fn search_terms(&self) -> Vec<&str> {
vec!["search", "shift", "switch"]
vec!["search", "shift", "switch", "regex"]
}
fn run(