mirror of
https://github.com/nushell/nushell.git
synced 2025-02-24 06:22:17 +01:00
Add search terms to roll commands (#6761)
This commit is contained in:
parent
a498234f1d
commit
ec8e57cde9
@ -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 New Issue
Block a user