Skip to content

Commit 395be3f

Browse files
StartAutomatingStartAutomating
authored andcommitted
Adding and Updating READMEs
1 parent 80e8a0f commit 395be3f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
describe 'Update-ScriptBlock' {
3+
it 'Update-ScriptBlock Example 1' {
4+
Update-PipeScript -ScriptBlock {
5+
param($x,$y)
6+
} -RemoveParameter x
7+
}
8+
it 'Update-ScriptBlock Example 2' {
9+
Update-PipeScript -RenameVariable @{x='y'} -ScriptBlock {$x}
10+
}
11+
it 'Update-ScriptBlock Example 3' {
12+
Update-PipeScript -ScriptBlock {
13+
#region MyRegion
14+
1
15+
#endregion MyRegion
16+
2
17+
} -RegionReplacement @{MyRegion=''}
18+
}
19+
}
20+

0 commit comments

Comments
 (0)