@@ -4,22 +4,14 @@ Inherit
44
55
66
7-
8-
9-
10-
117### Synopsis
128Inherits a Command
139
1410
1511
16-
17-
1812---
1913
2014
21-
22-
2315### Description
2416
2517Inherits a given command.
@@ -44,13 +36,9 @@ One interesting example is overriding an application
4436
4537
4638
47-
48-
4939---
5040
5141
52-
53-
5442### Examples
5543#### EXAMPLE 1
5644``` PowerShell
@@ -89,13 +77,9 @@ Invoke-PipeScript {
8977
9078
9179
92-
93-
9480---
9581
9682
97-
98-
9983### Parameters
10084#### ** Command**
10185
@@ -119,9 +103,6 @@ It will also define a variable within a dynamicParam {} block that contains the
119103
120104
121105
122- | Type | Required| Position| PipelineInput|
123- | ----------| --------| --------| -------------|
124- | ` [Switch] ` | false | named | false |
125106| Type | Required| Position| PipelineInput|
126107| ----------| --------| --------| -------------|
127108| ` [Switch] ` | false | named | false |
@@ -137,9 +118,6 @@ If provided, will set an alias on the function to replace the original command.
137118
138119
139120
140- | Type | Required| Position| PipelineInput| Aliases |
141- | ----------| --------| --------| -------------| --------|
142- | ` [Switch] ` | false | named | false | Overload|
143121| Type | Required| Position| PipelineInput| Aliases |
144122| ----------| --------| --------| -------------| --------|
145123| ` [Switch] ` | false | named | false | Overload|
@@ -156,9 +134,6 @@ This will use dynamic parameters instead of static parameters, and will use a pr
156134
157135
158136
159- | Type | Required| Position| PipelineInput|
160- | ----------| --------| --------| -------------|
161- | ` [Switch] ` | false | named | false |
162137| Type | Required| Position| PipelineInput|
163138| ----------| --------| --------| -------------|
164139| ` [Switch] ` | false | named | false |
@@ -175,9 +150,6 @@ This is implied by -Dynamic.
175150
176151
177152
178- | Type | Required| Position| PipelineInput|
179- | ----------| --------| --------| -------------|
180- | ` [Switch] ` | false | named | false |
181153| Type | Required| Position| PipelineInput|
182154| ----------| --------| --------| -------------|
183155| ` [Switch] ` | false | named | false |
@@ -195,9 +167,6 @@ If the -CommandType includes aliases, and another command is also found, that co
195167
196168
197169
198- | Type | Required| Position| PipelineInput| Aliases |
199- | ------------| --------| --------| -------------| ------------|
200- | ` [String[]] ` | false | named | false | CommandTypes|
201170| Type | Required| Position| PipelineInput| Aliases |
202171| ------------| --------| --------| -------------| ------------|
203172| ` [String[]] ` | false | named | false | CommandTypes|
@@ -228,9 +197,6 @@ Valid Values:
228197
229198
230199
231- | Type | Required| Position| PipelineInput| Aliases |
232- | ------------| --------| --------| -------------| ------------------------------------------------------|
233- | ` [String[]] ` | false | named | false | SkipBlockType<br />SkipBlockTypes<br />ExcludeBlockTypes|
234200| Type | Required| Position| PipelineInput| Aliases |
235201| ------------| --------| --------| -------------| ------------------------------------------------------|
236202| ` [String[]] ` | false | named | false | SkipBlockType<br />SkipBlockTypes<br />ExcludeBlockTypes|
@@ -260,9 +226,6 @@ Valid Values:
260226
261227
262228
263- | Type | Required| Position| PipelineInput| Aliases |
264- | ------------| --------| --------| -------------| ----------------------------------------------|
265- | ` [String[]] ` | false | named | false | BlockType<br />BlockTypes<br />IncludeBlockTypes|
266229| Type | Required| Position| PipelineInput| Aliases |
267230| ------------| --------| --------| -------------| ----------------------------------------------|
268231| ` [String[]] ` | false | named | false | BlockType<br />BlockTypes<br />IncludeBlockTypes|
@@ -279,9 +242,6 @@ If -IncludeParameter is provided without -ExcludeParameter, all other parameters
279242
280243
281244
282- | Type | Required| Position| PipelineInput|
283- | ------------| --------| --------| -------------|
284- | ` [String[]] ` | false | named | false |
285245| Type | Required| Position| PipelineInput|
286246| ------------| --------| --------| -------------|
287247| ` [String[]] ` | false | named | false |
@@ -298,9 +258,6 @@ Excluded parameters with default values will declare the default value at the be
298258
299259
300260
301- | Type | Required| Position| PipelineInput|
302- | ------------| --------| --------| -------------|
303- | ` [String[]] ` | false | named | false |
304261| Type | Required| Position| PipelineInput|
305262| ------------| --------| --------| -------------|
306263| ` [String[]] ` | false | named | false |
@@ -312,11 +269,6 @@ Excluded parameters with default values will declare the default value at the be
312269
313270
314271
315-
316-
317- | Type | Required| Position| PipelineInput |
318- | ---------------| --------| --------| --------------|
319- | ` [ScriptBlock] ` | false | named | true (ByValue)|
320272| Type | Required| Position| PipelineInput |
321273| ---------------| --------| --------| --------------|
322274| ` [ScriptBlock] ` | false | named | true (ByValue)|
@@ -328,8 +280,6 @@ Excluded parameters with default values will declare the default value at the be
328280---
329281
330282
331-
332-
333283### Syntax
334284``` PowerShell
335285Inherit [-Command] <String> [-Abstract] [-Override] [-Dynamic] [-Proxy] [-CommandType <String[]>] [-ExcludeBlockType <String[]>] [-IncludeBlockType <String[]>] [-IncludeParameter <String[]>] [-ExcludeParameter <String[]>] [-ScriptBlock <ScriptBlock>] [<CommonParameters>]
0 commit comments