@@ -4,35 +4,23 @@ New-PipeScript
4
4
5
5
6
6
7
-
8
-
9
-
10
-
11
7
### Synopsis
12
8
Creates new PipeScript.
13
9
14
10
15
11
16
-
17
-
18
12
---
19
13
20
14
21
-
22
-
23
15
### Description
24
16
25
17
Creates new PipeScript and PowerShell ScriptBlocks.
26
18
27
19
28
20
29
-
30
-
31
21
---
32
22
33
23
34
-
35
-
36
24
### Examples
37
25
#### EXAMPLE 1
38
26
``` PowerShell
@@ -65,8 +53,6 @@ New-PipeScript -Parameter @{"bar"=@{
65
53
---
66
54
67
55
68
-
69
-
70
56
### Parameters
71
57
#### ** Parameter**
72
58
@@ -81,9 +67,6 @@ Parameters can be defined in a few ways:
81
67
82
68
83
69
84
- | Type | Required| Position| PipelineInput |
85
- | ----------| --------| --------| ---------------------|
86
- | ` [Object] ` | false | 1 | true (ByPropertyName)|
87
70
| Type | Required| Position| PipelineInput |
88
71
| ----------| --------| --------| ---------------------|
89
72
| ` [Object] ` | false | 1 | true (ByPropertyName)|
@@ -99,9 +82,6 @@ The dynamic parameter block.
99
82
100
83
101
84
102
- | Type | Required| Position| PipelineInput | Aliases |
103
- | ---------------| --------| --------| ---------------------| ---------------------|
104
- | ` [ScriptBlock] ` | false | 2 | true (ByPropertyName)| DynamicParameterBlock|
105
85
| Type | Required| Position| PipelineInput | Aliases |
106
86
| ---------------| --------| --------| ---------------------| ---------------------|
107
87
| ` [ScriptBlock] ` | false | 2 | true (ByPropertyName)| DynamicParameterBlock|
@@ -117,9 +97,6 @@ The begin block.
117
97
118
98
119
99
120
- | Type | Required| Position| PipelineInput | Aliases |
121
- | ---------------| --------| --------| ---------------------| ----------|
122
- | ` [ScriptBlock] ` | false | 3 | true (ByPropertyName)| BeginBlock|
123
100
| Type | Required| Position| PipelineInput | Aliases |
124
101
| ---------------| --------| --------| ---------------------| ----------|
125
102
| ` [ScriptBlock] ` | false | 3 | true (ByPropertyName)| BeginBlock|
@@ -135,9 +112,6 @@ The process block.
135
112
136
113
137
114
138
- | Type | Required| Position| PipelineInput | Aliases |
139
- | ---------------| --------| --------| ---------------------| ------------|
140
- | ` [ScriptBlock] ` | false | 4 | true (ByPropertyName)| ProcessBlock|
141
115
| Type | Required| Position| PipelineInput | Aliases |
142
116
| ---------------| --------| --------| ---------------------| ------------|
143
117
| ` [ScriptBlock] ` | false | 4 | true (ByPropertyName)| ProcessBlock|
@@ -153,9 +127,6 @@ The end block.
153
127
154
128
155
129
156
- | Type | Required| Position| PipelineInput | Aliases |
157
- | ---------------| --------| --------| ---------------------| --------|
158
- | ` [ScriptBlock] ` | false | 5 | true (ByPropertyName)| EndBlock|
159
130
| Type | Required| Position| PipelineInput | Aliases |
160
131
| ---------------| --------| --------| ---------------------| --------|
161
132
| ` [ScriptBlock] ` | false | 5 | true (ByPropertyName)| EndBlock|
@@ -171,9 +142,6 @@ The script header.
171
142
172
143
173
144
174
- | Type | Required| Position| PipelineInput |
175
- | ----------| --------| --------| ---------------------|
176
- | ` [String] ` | false | 6 | true (ByPropertyName)|
177
145
| Type | Required| Position| PipelineInput |
178
146
| ----------| --------| --------| ---------------------|
179
147
| ` [String] ` | false | 6 | true (ByPropertyName)|
@@ -190,9 +158,6 @@ Parameters will be automatically created for any unassigned variables.
190
158
191
159
192
160
193
- | Type | Required| Position| PipelineInput| Aliases |
194
- | ----------| --------| --------| -------------| -----------------------------------|
195
- | ` [Switch] ` | false | named | false | AutoParameterize<br />AutoParameters|
196
161
| Type | Required| Position| PipelineInput| Aliases |
197
162
| ----------| --------| --------| -------------| -----------------------------------|
198
163
| ` [Switch] ` | false | named | false | AutoParameterize<br />AutoParameters|
@@ -209,9 +174,6 @@ By default, ```[PSObject]```.
209
174
210
175
211
176
212
- | Type | Required| Position| PipelineInput|
213
- | --------| --------| --------| -------------|
214
- | ` [Type] ` | false | 7 | false |
215
177
| Type | Required| Position| PipelineInput|
216
178
| --------| --------| --------| -------------|
217
179
| ` [Type] ` | false | 7 | false |
@@ -227,9 +189,6 @@ If provided, will add inline help to parameters.
227
189
228
190
229
191
230
- | Type | Required| Position| PipelineInput|
231
- | ---------------| --------| --------| -------------|
232
- | ` [IDictionary] ` | false | 8 | false |
233
192
| Type | Required| Position| PipelineInput|
234
193
| ---------------| --------| --------| -------------|
235
194
| ` [IDictionary] ` | false | 8 | false |
@@ -249,9 +208,6 @@ If set, will weakly type parameters generated by reflection.
249
208
250
209
251
210
252
- | Type | Required| Position| PipelineInput| Aliases |
253
- | ----------| --------| --------| -------------| --------------------------------------------------------------------------------------------------|
254
- | ` [Switch] ` | false | named | false | WeakType<br />WeakParameters<br />WeaklyTypedParameters<br />WeakProperties<br />WeaklyTypedProperties|
255
211
| Type | Required| Position| PipelineInput| Aliases |
256
212
| ----------| --------| --------| -------------| --------------------------------------------------------------------------------------------------|
257
213
| ` [Switch] ` | false | named | false | WeakType<br />WeakParameters<br />WeaklyTypedParameters<br />WeakProperties<br />WeaklyTypedProperties|
@@ -267,9 +223,6 @@ The name of the function to create.
267
223
268
224
269
225
270
- | Type | Required| Position| PipelineInput|
271
- | ----------| --------| --------| -------------|
272
- | ` [String] ` | false | 9 | false |
273
226
| Type | Required| Position| PipelineInput|
274
227
| ----------| --------| --------| -------------|
275
228
| ` [String] ` | false | 9 | false |
@@ -301,9 +254,6 @@ A description of the script's functionality. If provided with -Synopsis, will g
301
254
302
255
303
256
304
- | Type | Required| Position| PipelineInput|
305
- | ----------| --------| --------| -------------|
306
- | ` [String] ` | false | 11 | false |
307
257
| Type | Required| Position| PipelineInput|
308
258
| ----------| --------| --------| -------------|
309
259
| ` [String] ` | false | 11 | false |
@@ -319,9 +269,6 @@ A short synopsis of the script's functionality. If provided with -Description,
319
269
320
270
321
271
322
- | Type | Required| Position| PipelineInput|
323
- | ----------| --------| --------| -------------|
324
- | ` [String] ` | false | 12 | false |
325
272
| Type | Required| Position| PipelineInput|
326
273
| ----------| --------| --------| -------------|
327
274
| ` [String] ` | false | 12 | false |
@@ -337,9 +284,6 @@ A list of examples to use in help. Will be ignored if -Synopsis and -Descriptio
337
284
338
285
339
286
340
- | Type | Required| Position| PipelineInput| Aliases |
341
- | ------------| --------| --------| -------------| --------|
342
- | ` [String[]] ` | false | 13 | false | Examples|
343
287
| Type | Required| Position| PipelineInput| Aliases |
344
288
| ------------| --------| --------| -------------| --------|
345
289
| ` [String[]] ` | false | 13 | false | Examples|
@@ -355,9 +299,6 @@ A list of links to use in help. Will be ignored if -Synopsis and -Description a
355
299
356
300
357
301
358
- | Type | Required| Position| PipelineInput| Aliases|
359
- | ------------| --------| --------| -------------| -------|
360
- | ` [String[]] ` | false | 14 | false | Links |
361
302
| Type | Required| Position| PipelineInput| Aliases|
362
303
| ------------| --------| --------| -------------| -------|
363
304
| ` [String[]] ` | false | 14 | false | Links |
@@ -399,8 +340,6 @@ If set, will not transpile the created code.
399
340
---
400
341
401
342
402
-
403
-
404
343
### Syntax
405
344
``` PowerShell
406
345
New-PipeScript [[-Parameter] <Object>] [[-DynamicParameter] <ScriptBlock>] [[-Begin] <ScriptBlock>] [[-Process] <ScriptBlock>] [[-End] <ScriptBlock>] [[-Header] <String>] [-AutoParameter] [[-AutoParameterType] <Type>] [[-ParameterHelp] <IDictionary>] [-WeaklyTyped] [[-FunctionName] <String>] [[-FunctionType] <String>] [[-Description] <String>] [[-Synopsis] <String>] [[-Example] <String[]>] [[-Link] <String[]>] [[-Attribute] <String[]>] [-NoTranspile] [<CommonParameters>]
0 commit comments