mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
Add search terms to roll commands (#6761)
This commit is contained in:
parent
a498234f1d
commit
ec8e57cde9
5 changed files with 20 additions and 0 deletions
|
@ -11,6 +11,10 @@ impl Command for Roll {
|
|||
"roll"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["rotate", "shift", "move"]
|
||||
}
|
||||
|
||||
fn signature(&self) -> Signature {
|
||||
Signature::build(self.name()).category(Category::Filters)
|
||||
}
|
||||
|
|
|
@ -16,6 +16,10 @@ impl Command for RollDown {
|
|||
"roll down"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["rotate", "shift", "move", "row"]
|
||||
}
|
||||
|
||||
fn signature(&self) -> Signature {
|
||||
Signature::build(self.name())
|
||||
.named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))
|
||||
|
|
|
@ -16,6 +16,10 @@ impl Command for RollLeft {
|
|||
"roll left"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["rotate", "shift", "move", "column"]
|
||||
}
|
||||
|
||||
fn signature(&self) -> Signature {
|
||||
Signature::build(self.name())
|
||||
.named(
|
||||
|
|
|
@ -16,6 +16,10 @@ impl Command for RollRight {
|
|||
"roll right"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["rotate", "shift", "move", "column"]
|
||||
}
|
||||
|
||||
fn signature(&self) -> Signature {
|
||||
Signature::build(self.name())
|
||||
.named(
|
||||
|
|
|
@ -16,6 +16,10 @@ impl Command for RollUp {
|
|||
"roll up"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["rotate", "shift", "move", "row"]
|
||||
}
|
||||
|
||||
fn signature(&self) -> Signature {
|
||||
Signature::build(self.name())
|
||||
.named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))
|
||||
|
|
Loading…
Reference in a new issue