File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments