Skip to content

Commit c221b46

Browse files
StartAutomatingStartAutomating
authored andcommitted
Update-PipeScript: Adding -InsertBefore/After (Fixes #309). Improving aliasing (Fixes #310)
1 parent e05b821 commit c221b46

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

docs/Update-PipeScript.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,40 @@ If provided, will remove one or more parameters from a ScriptBlock.
157157
158158

159159

160+
---
161+
#### **InsertBefore**
162+
163+
If provided, will insert text before any regular epxression match.
164+
165+
166+
167+
> **Type**: ```[IDictionary]```
168+
169+
> **Required**: false
170+
171+
> **Position**: 8
172+
173+
> **PipelineInput**:false
174+
175+
176+
177+
---
178+
#### **InsertAfter**
179+
180+
If provided, will insert text after any regular expression match.
181+
182+
183+
184+
> **Type**: ```[IDictionary]```
185+
186+
> **Required**: false
187+
188+
> **Position**: 9
189+
190+
> **PipelineInput**:false
191+
192+
193+
160194
---
161195
#### **RenameVariable**
162196

@@ -168,7 +202,7 @@ A collection of variables to rename.
168202
169203
> **Required**: false
170204
171-
> **Position**: 8
205+
> **Position**: 10
172206
173207
> **PipelineInput**:false
174208
@@ -194,6 +228,6 @@ If set, will transpile the updated script block.
194228
---
195229
### Syntax
196230
```PowerShell
197-
Update-PipeScript [[-ScriptBlock] <ScriptBlock>] [[-Text] <String>] [[-TextReplacement] <IDictionary>] [[-AstReplacement] <IDictionary>] [[-RegexReplacement] <IDictionary>] [[-RegionReplacement] <IDictionary>] [[-RemoveParameter] <String[]>] [[-RenameVariable] <IDictionary>] [-Transpile] [<CommonParameters>]
231+
Update-PipeScript [[-ScriptBlock] <ScriptBlock>] [[-Text] <String>] [[-TextReplacement] <IDictionary>] [[-AstReplacement] <IDictionary>] [[-RegexReplacement] <IDictionary>] [[-RegionReplacement] <IDictionary>] [[-RemoveParameter] <String[]>] [[-InsertBefore] <IDictionary>] [[-InsertAfter] <IDictionary>] [[-RenameVariable] <IDictionary>] [-Transpile] [<CommonParameters>]
198232
```
199233
---

0 commit comments

Comments
 (0)