mirror of
https://github.com/nushell/nushell.git
synced 2025-01-10 16:28:50 +01:00
Add remove
as a search term on drop
commands (#14493)
# Description Better discoverability of `drop` subcommands "I want to remove items by index" -> `drop nth` h/t @amtoine # User-Facing Changes More search terms
This commit is contained in:
parent
c63bb81c3e
commit
a65a7df209
@ -29,7 +29,7 @@ impl Command for DropColumn {
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["delete"]
|
||||
vec!["delete", "remove"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
@ -26,7 +26,7 @@ impl Command for Drop {
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["delete"]
|
||||
vec!["delete", "remove"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
|
@ -32,7 +32,7 @@ impl Command for DropNth {
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["delete"]
|
||||
vec!["delete", "remove", "index"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
|
Loading…
Reference in New Issue
Block a user