Rename cond math (#2807)

* Simplifies 'if' to work on the available scope rather than a stream

* Rename initializer/math for better readability

* Fix description

* fmt
This commit is contained in:
Jonathan Turner
2020-12-21 17:32:06 +13:00
committed by GitHub
parent e3da546e23
commit 67acaae53c
11 changed files with 31 additions and 28 deletions

View File

@ -26,7 +26,7 @@ impl WholeStreamCommand for If {
Signature::build("if")
.required(
"condition",
SyntaxShape::Math,
SyntaxShape::MathExpression,
"the condition that must match",
)
.required(

View File

@ -18,7 +18,7 @@ impl WholeStreamCommand for SubCommand {
Signature::build("keep until")
.required(
"condition",
SyntaxShape::Math,
SyntaxShape::RowCondition,
"The condition that must be met to stop keeping rows",
)
.filter()

View File

@ -17,7 +17,7 @@ impl WholeStreamCommand for SubCommand {
Signature::build("keep while")
.required(
"condition",
SyntaxShape::Math,
SyntaxShape::RowCondition,
"The condition that must be met to keep rows",
)
.filter()

View File

@ -29,7 +29,7 @@ impl WholeStreamCommand for Set {
.required("equals", SyntaxShape::String, "the equals sign")
.required(
"expr",
SyntaxShape::Initializer,
SyntaxShape::MathExpression,
"the value to set the variable to",
)
}

View File

@ -33,7 +33,7 @@ impl WholeStreamCommand for SetEnv {
.required("equals", SyntaxShape::String, "the equals sign")
.required(
"expr",
SyntaxShape::Initializer,
SyntaxShape::MathExpression,
"the value to set the environment variable to",
)
}

View File

@ -17,7 +17,7 @@ impl WholeStreamCommand for SubCommand {
Signature::build("skip until")
.required(
"condition",
SyntaxShape::Math,
SyntaxShape::RowCondition,
"The condition that must be met to stop skipping",
)
.filter()

View File

@ -17,7 +17,7 @@ impl WholeStreamCommand for SubCommand {
Signature::build("skip while")
.required(
"condition",
SyntaxShape::Math,
SyntaxShape::RowCondition,
"The condition that must be met to continue skipping",
)
.filter()

View File

@ -22,7 +22,7 @@ impl WholeStreamCommand for Where {
fn signature(&self) -> Signature {
Signature::build("where").required(
"condition",
SyntaxShape::Math,
SyntaxShape::RowCondition,
"the condition that must match",
)
}