Skip to content

Commit efaa73a

Browse files
StartAutomatingStartAutomating
authored andcommitted
Join-PipeScript: Improving Unnamed end block behavior (Fixes #363)
1 parent 89f6660 commit efaa73a

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

docs/ValidatePlatform.md

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
ValidatePlatform
22
----------------
3+
4+
5+
6+
37
### Synopsis
48
Validates the Platform
59

10+
11+
612
---
13+
14+
715
### Description
816

917
Validates the Platform.
@@ -13,7 +21,11 @@ When used within Parameters, this adds a ```[ValidateScript({})]``` to ensure th
1321
When used on a ```[Management.Automation.Language.VariableExpressionAst]``` will apply a
1422
```[ValidateScript({})]``` to that variable, which will prevent assignemnt to the variable if not on the platform.
1523

24+
25+
1626
---
27+
28+
1729
### Examples
1830
#### EXAMPLE 1
1931
```PowerShell
@@ -26,44 +38,48 @@ When used on a ```[Management.Automation.Language.VariableExpressionAst]``` will
2638
} | .>PipeScript
2739
```
2840

41+
42+
2943
---
44+
45+
3046
### Parameters
3147
#### **Platform**
3248

3349
The name of one or more platforms. These will be interpreted as wildcards.
3450

3551

3652

37-
> **Type**: ```[String[]]```
3853

39-
> **Required**: true
4054

41-
> **Position**: 1
4255

43-
> **PipelineInput**:false
56+
|Type |Required|Position|PipelineInput|
57+
|------------|--------|--------|-------------|
58+
|`[String[]]`|true |1 |false |
4459

4560

4661

47-
---
4862
#### **VariableAST**
4963

50-
> **Type**: ```[VariableExpressionAst]```
5164

52-
> **Required**: false
5365

54-
> **Position**: named
5566

56-
> **PipelineInput**:true (ByValue)
67+
|Type |Required|Position|PipelineInput |
68+
|-------------------------|--------|--------|--------------|
69+
|`[VariableExpressionAst]`|false |named |true (ByValue)|
70+
71+
5772

5873

5974

6075
---
76+
77+
6178
### Syntax
6279
```PowerShell
6380
ValidatePlatform [-Platform] <String[]> [<CommonParameters>]
6481
```
6582
```PowerShell
6683
ValidatePlatform [-Platform] <String[]> [-VariableAST <VariableExpressionAst>] [<CommonParameters>]
6784
```
68-
---
6985

0 commit comments

Comments
 (0)