@@ -4,22 +4,14 @@ Inherit
4
4
5
5
6
6
7
-
8
-
9
-
10
-
11
7
### Synopsis
12
8
Inherits a Command
13
9
14
10
15
11
16
-
17
-
18
12
---
19
13
20
14
21
-
22
-
23
15
### Description
24
16
25
17
Inherits a given command.
@@ -44,13 +36,9 @@ One interesting example is overriding an application
44
36
45
37
46
38
47
-
48
-
49
39
---
50
40
51
41
52
-
53
-
54
42
### Examples
55
43
#### EXAMPLE 1
56
44
``` PowerShell
@@ -89,13 +77,9 @@ Invoke-PipeScript {
89
77
90
78
91
79
92
-
93
-
94
80
---
95
81
96
82
97
-
98
-
99
83
### Parameters
100
84
#### ** Command**
101
85
@@ -119,9 +103,6 @@ It will also define a variable within a dynamicParam {} block that contains the
119
103
120
104
121
105
122
- | Type | Required| Position| PipelineInput|
123
- | ----------| --------| --------| -------------|
124
- | ` [Switch] ` | false | named | false |
125
106
| Type | Required| Position| PipelineInput|
126
107
| ----------| --------| --------| -------------|
127
108
| ` [Switch] ` | false | named | false |
@@ -137,9 +118,6 @@ If provided, will set an alias on the function to replace the original command.
137
118
138
119
139
120
140
- | Type | Required| Position| PipelineInput| Aliases |
141
- | ----------| --------| --------| -------------| --------|
142
- | ` [Switch] ` | false | named | false | Overload|
143
121
| Type | Required| Position| PipelineInput| Aliases |
144
122
| ----------| --------| --------| -------------| --------|
145
123
| ` [Switch] ` | false | named | false | Overload|
@@ -156,9 +134,6 @@ This will use dynamic parameters instead of static parameters, and will use a pr
156
134
157
135
158
136
159
- | Type | Required| Position| PipelineInput|
160
- | ----------| --------| --------| -------------|
161
- | ` [Switch] ` | false | named | false |
162
137
| Type | Required| Position| PipelineInput|
163
138
| ----------| --------| --------| -------------|
164
139
| ` [Switch] ` | false | named | false |
@@ -175,9 +150,6 @@ This is implied by -Dynamic.
175
150
176
151
177
152
178
- | Type | Required| Position| PipelineInput|
179
- | ----------| --------| --------| -------------|
180
- | ` [Switch] ` | false | named | false |
181
153
| Type | Required| Position| PipelineInput|
182
154
| ----------| --------| --------| -------------|
183
155
| ` [Switch] ` | false | named | false |
@@ -195,9 +167,6 @@ If the -CommandType includes aliases, and another command is also found, that co
195
167
196
168
197
169
198
- | Type | Required| Position| PipelineInput| Aliases |
199
- | ------------| --------| --------| -------------| ------------|
200
- | ` [String[]] ` | false | named | false | CommandTypes|
201
170
| Type | Required| Position| PipelineInput| Aliases |
202
171
| ------------| --------| --------| -------------| ------------|
203
172
| ` [String[]] ` | false | named | false | CommandTypes|
@@ -228,9 +197,6 @@ Valid Values:
228
197
229
198
230
199
231
- | Type | Required| Position| PipelineInput| Aliases |
232
- | ------------| --------| --------| -------------| ------------------------------------------------------|
233
- | ` [String[]] ` | false | named | false | SkipBlockType<br />SkipBlockTypes<br />ExcludeBlockTypes|
234
200
| Type | Required| Position| PipelineInput| Aliases |
235
201
| ------------| --------| --------| -------------| ------------------------------------------------------|
236
202
| ` [String[]] ` | false | named | false | SkipBlockType<br />SkipBlockTypes<br />ExcludeBlockTypes|
@@ -260,9 +226,6 @@ Valid Values:
260
226
261
227
262
228
263
- | Type | Required| Position| PipelineInput| Aliases |
264
- | ------------| --------| --------| -------------| ----------------------------------------------|
265
- | ` [String[]] ` | false | named | false | BlockType<br />BlockTypes<br />IncludeBlockTypes|
266
229
| Type | Required| Position| PipelineInput| Aliases |
267
230
| ------------| --------| --------| -------------| ----------------------------------------------|
268
231
| ` [String[]] ` | false | named | false | BlockType<br />BlockTypes<br />IncludeBlockTypes|
@@ -279,9 +242,6 @@ If -IncludeParameter is provided without -ExcludeParameter, all other parameters
279
242
280
243
281
244
282
- | Type | Required| Position| PipelineInput|
283
- | ------------| --------| --------| -------------|
284
- | ` [String[]] ` | false | named | false |
285
245
| Type | Required| Position| PipelineInput|
286
246
| ------------| --------| --------| -------------|
287
247
| ` [String[]] ` | false | named | false |
@@ -298,9 +258,6 @@ Excluded parameters with default values will declare the default value at the be
298
258
299
259
300
260
301
- | Type | Required| Position| PipelineInput|
302
- | ------------| --------| --------| -------------|
303
- | ` [String[]] ` | false | named | false |
304
261
| Type | Required| Position| PipelineInput|
305
262
| ------------| --------| --------| -------------|
306
263
| ` [String[]] ` | false | named | false |
@@ -312,11 +269,6 @@ Excluded parameters with default values will declare the default value at the be
312
269
313
270
314
271
315
-
316
-
317
- | Type | Required| Position| PipelineInput |
318
- | ---------------| --------| --------| --------------|
319
- | ` [ScriptBlock] ` | false | named | true (ByValue)|
320
272
| Type | Required| Position| PipelineInput |
321
273
| ---------------| --------| --------| --------------|
322
274
| ` [ScriptBlock] ` | false | named | true (ByValue)|
@@ -328,8 +280,6 @@ Excluded parameters with default values will declare the default value at the be
328
280
---
329
281
330
282
331
-
332
-
333
283
### Syntax
334
284
``` PowerShell
335
285
Inherit [-Command] <String> [-Abstract] [-Override] [-Dynamic] [-Proxy] [-CommandType <String[]>] [-ExcludeBlockType <String[]>] [-IncludeBlockType <String[]>] [-IncludeParameter <String[]>] [-ExcludeParameter <String[]>] [-ScriptBlock <ScriptBlock>] [<CommonParameters>]
0 commit comments