mirror of
https://github.com/nushell/nushell.git
synced 2025-02-23 05:51:28 +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"
|
||||
}
|
||||
|
||||
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 New Issue
Block a user