Skip to content

Commit a1dcc74

Browse files
author
James Brundage
committed
Merge branch 'PipeScriptUpdates' of https://github.com/StartAutomating/PipeScript into PipeScriptUpdates
2 parents 64d0907 + 709e159 commit a1dcc74

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

docs/ValidateScriptBlock.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,40 @@ Passing -IncludeType without -ExcludeType will make -ExcludeType default to *.
176176
177177

178178

179+
---
180+
#### **NoLoop**
181+
182+
If set, will ensure that the ScriptBlock does not contain any loops.
183+
184+
185+
186+
> **Type**: ```[Switch]```
187+
188+
> **Required**: false
189+
190+
> **Position**: named
191+
192+
> **PipelineInput**:false
193+
194+
195+
196+
---
197+
#### **NoWhileLoop**
198+
199+
If set, will ensure that the ScriptBlock does not contain any do or while loops.
200+
201+
202+
203+
> **Type**: ```[Switch]```
204+
205+
> **Required**: false
206+
207+
> **Position**: named
208+
209+
> **PipelineInput**:false
210+
211+
212+
179213
---
180214
#### **AstCondition**
181215

@@ -214,10 +248,10 @@ A VariableExpression. If provided, the Validation attributes will apply to this
214248
---
215249
### Syntax
216250
```PowerShell
217-
ValidateScriptBlock [-DataLanguage] [-ParameterOnly] [-NoBlock] [-NoParameter] [-IncludeCommand <Object>] [-ExcludeCommand <Object>] [-IncludeType <Object>] [-ExcludeType <Object>] [-AstCondition <ScriptBlock[]>] [<CommonParameters>]
251+
ValidateScriptBlock [-DataLanguage] [-ParameterOnly] [-NoBlock] [-NoParameter] [-IncludeCommand <Object>] [-ExcludeCommand <Object>] [-IncludeType <Object>] [-ExcludeType <Object>] [-NoLoop] [-NoWhileLoop] [-AstCondition <ScriptBlock[]>] [<CommonParameters>]
218252
```
219253
```PowerShell
220-
ValidateScriptBlock [-DataLanguage] [-ParameterOnly] [-NoBlock] [-NoParameter] [-IncludeCommand <Object>] [-ExcludeCommand <Object>] [-IncludeType <Object>] [-ExcludeType <Object>] [-AstCondition <ScriptBlock[]>] -VariableAST <VariableExpressionAst> [<CommonParameters>]
254+
ValidateScriptBlock [-DataLanguage] [-ParameterOnly] [-NoBlock] [-NoParameter] [-IncludeCommand <Object>] [-ExcludeCommand <Object>] [-IncludeType <Object>] [-ExcludeType <Object>] [-NoLoop] [-NoWhileLoop] [-AstCondition <ScriptBlock[]>] -VariableAST <VariableExpressionAst> [<CommonParameters>]
221255
```
222256
---
223257

0 commit comments

Comments
 (0)