mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
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:
parent
e9508b578a
commit
9c84c01aef
5 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -45,7 +45,7 @@ impl Command for SubCommand {
|
|||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["separate", "divide"]
|
||||
vec!["separate", "divide", "regex"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
|
|
@ -38,7 +38,7 @@ impl Command for SubCommand {
|
|||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["separate", "divide"]
|
||||
vec!["separate", "divide", "regex"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
|
|
@ -38,7 +38,7 @@ impl Command for SubCommand {
|
|||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["separate", "divide"]
|
||||
vec!["separate", "divide", "regex"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue