Skip to content

Commit 89f6660

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

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

docs/ValidateExtension.md

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
ValidateExtension
22
-----------------
3+
4+
5+
6+
37
### Synopsis
48
Validates Extensions
59

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

917
Validates that a parameter or object has one or more extensions.
1018

1119
This creates a [ValidatePattern] that will ensure the extension matches.
1220

21+
22+
1323
---
24+
25+
1426
### Examples
1527
#### EXAMPLE 1
1628
```PowerShell
@@ -42,49 +54,53 @@ $FilePath
4254
```
4355
$FilePath
4456
} -Parameter @{FilePath="foo.txt"}
57+
58+
4559
---
60+
61+
4662
### Parameters
4763
#### **Extension**
4864

4965
The extensions being validated.
5066

5167

5268

53-
> **Type**: ```[String[]]```
5469

55-
> **Required**: true
5670

57-
> **Position**: 1
5871

59-
> **PipelineInput**:false
72+
|Type |Required|Position|PipelineInput|
73+
|------------|--------|--------|-------------|
74+
|`[String[]]`|true |1 |false |
6075

6176

6277

63-
---
6478
#### **VariableAST**
6579

6680
A variable expression.
6781
If this is provided, will apply a ```[ValidatePattern({})]``` attribute to the variable, constraining future values.
6882

6983

7084

71-
> **Type**: ```[VariableExpressionAst]```
7285

73-
> **Required**: false
7486

75-
> **Position**: named
7687

77-
> **PipelineInput**:true (ByValue)
88+
|Type |Required|Position|PipelineInput |
89+
|-------------------------|--------|--------|--------------|
90+
|`[VariableExpressionAst]`|false |named |true (ByValue)|
91+
92+
7893

7994

8095

8196
---
97+
98+
8299
### Syntax
83100
```PowerShell
84101
ValidateExtension [-Extension] <String[]> [<CommonParameters>]
85102
```
86103
```PowerShell
87104
ValidateExtension [-Extension] <String[]> [-VariableAST <VariableExpressionAst>] [<CommonParameters>]
88105
```
89-
---
90106

0 commit comments

Comments
 (0)