mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +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"
|
"roll"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
|
vec!["rotate", "shift", "move"]
|
||||||
|
}
|
||||||
|
|
||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build(self.name()).category(Category::Filters)
|
Signature::build(self.name()).category(Category::Filters)
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,10 @@ impl Command for RollDown {
|
||||||
"roll down"
|
"roll down"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
|
vec!["rotate", "shift", "move", "row"]
|
||||||
|
}
|
||||||
|
|
||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build(self.name())
|
Signature::build(self.name())
|
||||||
.named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))
|
.named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))
|
||||||
|
|
|
@ -16,6 +16,10 @@ impl Command for RollLeft {
|
||||||
"roll left"
|
"roll left"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
|
vec!["rotate", "shift", "move", "column"]
|
||||||
|
}
|
||||||
|
|
||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build(self.name())
|
Signature::build(self.name())
|
||||||
.named(
|
.named(
|
||||||
|
|
|
@ -16,6 +16,10 @@ impl Command for RollRight {
|
||||||
"roll right"
|
"roll right"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
|
vec!["rotate", "shift", "move", "column"]
|
||||||
|
}
|
||||||
|
|
||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build(self.name())
|
Signature::build(self.name())
|
||||||
.named(
|
.named(
|
||||||
|
|
|
@ -16,6 +16,10 @@ impl Command for RollUp {
|
||||||
"roll up"
|
"roll up"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
|
vec!["rotate", "shift", "move", "row"]
|
||||||
|
}
|
||||||
|
|
||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build(self.name())
|
Signature::build(self.name())
|
||||||
.named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))
|
.named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))
|
||||||
|
|
Loading…
Reference in a new issue