Skip to content

Commit 3c0054f

Browse files
StartAutomatingStartAutomating
authored andcommitted
Updating action (pulling just before push) (#163)
1 parent b7c476b commit 3c0054f

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

docs/RenameVariable.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
RenameVariable
3+
--------------
4+
### Synopsis
5+
Renames variables
6+
7+
---
8+
### Description
9+
10+
Renames variables in a ScriptBlock
11+
12+
---
13+
### Related Links
14+
* [Update-PipeScript](Update-PipeScript.md)
15+
---
16+
### Examples
17+
#### EXAMPLE 1
18+
```PowerShell
19+
{
20+
[RenameVariable(VariableRename={
21+
@{
22+
x='x1'
23+
y='y1'
24+
}
25+
})]
26+
param($x, $y)
27+
} | .>PipeScript
28+
```
29+
30+
---
31+
### Parameters
32+
#### **VariableRename**
33+
34+
The name of one or more parameters to remove
35+
36+
37+
38+
|Type |Requried|Postion|PipelineInput|
39+
|-------------------|--------|-------|-------------|
40+
|```[IDictionary]```|true |1 |false |
41+
---
42+
#### **ScriptBlock**
43+
44+
The ScriptBlock that declares the parameters.
45+
46+
47+
48+
|Type |Requried|Postion|PipelineInput |
49+
|-------------------|--------|-------|--------------|
50+
|```[ScriptBlock]```|true |named |true (ByValue)|
51+
---
52+
### Syntax
53+
```PowerShell
54+
RenameVariable [-VariableRename] <IDictionary> -ScriptBlock <ScriptBlock> [<CommonParameters>]
55+
```
56+
---
57+
58+

0 commit comments

Comments
 (0)