Skip to content

Commit 27a2de4

Browse files
StartAutomatingStartAutomating
authored andcommitted
Update-PipeScript: Adding -RegexReplacement (Fixes #178)
1 parent 192dc38 commit 27a2de4

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/Update-PipeScript.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ If set, will replace items based off of the abstract syntax tree.
5656
|-------------------|--------|-------|-------------|
5757
|```[IDictionary]```|false |4 |false |
5858
---
59+
#### **RegexReplacement**
60+
61+
If provided, will replace regular expression matches.
62+
63+
64+
65+
|Type |Requried|Postion|PipelineInput|
66+
|-------------------|--------|-------|-------------|
67+
|```[IDictionary]```|false |5 |false |
68+
---
5969
#### **RemoveParameter**
6070

6171
If provided, will remove one or more parameters from a ScriptBlock.
@@ -64,7 +74,7 @@ If provided, will remove one or more parameters from a ScriptBlock.
6474

6575
|Type |Requried|Postion|PipelineInput|
6676
|----------------|--------|-------|-------------|
67-
|```[String[]]```|false |5 |false |
77+
|```[String[]]```|false |6 |false |
6878
---
6979
#### **RenameVariable**
7080

@@ -74,7 +84,7 @@ A collection of variables to rename.
7484

7585
|Type |Requried|Postion|PipelineInput|
7686
|-------------------|--------|-------|-------------|
77-
|```[IDictionary]```|false |6 |false |
87+
|```[IDictionary]```|false |7 |false |
7888
---
7989
#### **Transpile**
8090

@@ -88,7 +98,7 @@ If set, will transpile the updated script block.
8898
---
8999
### Syntax
90100
```PowerShell
91-
Update-PipeScript [[-ScriptBlock] <ScriptBlock>] [[-Text] <String>] [[-TextReplacement] <IDictionary>] [[-AstReplacement] <IDictionary>] [[-RemoveParameter] <String[]>] [[-RenameVariable] <IDictionary>] [-Transpile] [<CommonParameters>]
101+
Update-PipeScript [[-ScriptBlock] <ScriptBlock>] [[-Text] <String>] [[-TextReplacement] <IDictionary>] [[-AstReplacement] <IDictionary>] [[-RegexReplacement] <IDictionary>] [[-RemoveParameter] <String[]>] [[-RenameVariable] <IDictionary>] [-Transpile] [<CommonParameters>]
92102
```
93103
---
94104

0 commit comments

Comments
 (0)