@@ -4,14 +4,22 @@ Inherit
44
55
66
7+
8+
9+
10+
711### Synopsis
812Inherits a Command
913
1014
1115
16+
17+
1218---
1319
1420
21+
22+
1523### Description
1624
1725Inherits a given command.
@@ -36,9 +44,13 @@ One interesting example is overriding an application
3644
3745
3846
47+
48+
3949---
4050
4151
52+
53+
4254### Examples
4355#### EXAMPLE 1
4456``` PowerShell
@@ -77,9 +89,13 @@ Invoke-PipeScript {
7789
7890
7991
92+
93+
8094---
8195
8296
97+
98+
8399### Parameters
84100#### ** Command**
85101
@@ -103,6 +119,9 @@ It will also define a variable within a dynamicParam {} block that contains the
103119
104120
105121
122+ | Type | Required| Position| PipelineInput|
123+ | ----------| --------| --------| -------------|
124+ | ` [Switch] ` | false | named | false |
106125| Type | Required| Position| PipelineInput|
107126| ----------| --------| --------| -------------|
108127| ` [Switch] ` | false | named | false |
@@ -118,6 +137,9 @@ If provided, will set an alias on the function to replace the original command.
118137
119138
120139
140+ | Type | Required| Position| PipelineInput| Aliases |
141+ | ----------| --------| --------| -------------| --------|
142+ | ` [Switch] ` | false | named | false | Overload|
121143| Type | Required| Position| PipelineInput| Aliases |
122144| ----------| --------| --------| -------------| --------|
123145| ` [Switch] ` | false | named | false | Overload|
@@ -134,6 +156,9 @@ This will use dynamic parameters instead of static parameters, and will use a pr
134156
135157
136158
159+ | Type | Required| Position| PipelineInput|
160+ | ----------| --------| --------| -------------|
161+ | ` [Switch] ` | false | named | false |
137162| Type | Required| Position| PipelineInput|
138163| ----------| --------| --------| -------------|
139164| ` [Switch] ` | false | named | false |
@@ -150,6 +175,9 @@ This is implied by -Dynamic.
150175
151176
152177
178+ | Type | Required| Position| PipelineInput|
179+ | ----------| --------| --------| -------------|
180+ | ` [Switch] ` | false | named | false |
153181| Type | Required| Position| PipelineInput|
154182| ----------| --------| --------| -------------|
155183| ` [Switch] ` | false | named | false |
@@ -167,6 +195,9 @@ If the -CommandType includes aliases, and another command is also found, that co
167195
168196
169197
198+ | Type | Required| Position| PipelineInput| Aliases |
199+ | ------------| --------| --------| -------------| ------------|
200+ | ` [String[]] ` | false | named | false | CommandTypes|
170201| Type | Required| Position| PipelineInput| Aliases |
171202| ------------| --------| --------| -------------| ------------|
172203| ` [String[]] ` | false | named | false | CommandTypes|
@@ -197,6 +228,9 @@ Valid Values:
197228
198229
199230
231+ | Type | Required| Position| PipelineInput| Aliases |
232+ | ------------| --------| --------| -------------| ------------------------------------------------------|
233+ | ` [String[]] ` | false | named | false | SkipBlockType<br />SkipBlockTypes<br />ExcludeBlockTypes|
200234| Type | Required| Position| PipelineInput| Aliases |
201235| ------------| --------| --------| -------------| ------------------------------------------------------|
202236| ` [String[]] ` | false | named | false | SkipBlockType<br />SkipBlockTypes<br />ExcludeBlockTypes|
@@ -226,6 +260,9 @@ Valid Values:
226260
227261
228262
263+ | Type | Required| Position| PipelineInput| Aliases |
264+ | ------------| --------| --------| -------------| ----------------------------------------------|
265+ | ` [String[]] ` | false | named | false | BlockType<br />BlockTypes<br />IncludeBlockTypes|
229266| Type | Required| Position| PipelineInput| Aliases |
230267| ------------| --------| --------| -------------| ----------------------------------------------|
231268| ` [String[]] ` | false | named | false | BlockType<br />BlockTypes<br />IncludeBlockTypes|
@@ -242,6 +279,9 @@ If -IncludeParameter is provided without -ExcludeParameter, all other parameters
242279
243280
244281
282+ | Type | Required| Position| PipelineInput|
283+ | ------------| --------| --------| -------------|
284+ | ` [String[]] ` | false | named | false |
245285| Type | Required| Position| PipelineInput|
246286| ------------| --------| --------| -------------|
247287| ` [String[]] ` | false | named | false |
@@ -258,6 +298,9 @@ Excluded parameters with default values will declare the default value at the be
258298
259299
260300
301+ | Type | Required| Position| PipelineInput|
302+ | ------------| --------| --------| -------------|
303+ | ` [String[]] ` | false | named | false |
261304| Type | Required| Position| PipelineInput|
262305| ------------| --------| --------| -------------|
263306| ` [String[]] ` | false | named | false |
@@ -269,6 +312,11 @@ Excluded parameters with default values will declare the default value at the be
269312
270313
271314
315+
316+
317+ | Type | Required| Position| PipelineInput |
318+ | ---------------| --------| --------| --------------|
319+ | ` [ScriptBlock] ` | false | named | true (ByValue)|
272320| Type | Required| Position| PipelineInput |
273321| ---------------| --------| --------| --------------|
274322| ` [ScriptBlock] ` | false | named | true (ByValue)|
@@ -280,6 +328,8 @@ Excluded parameters with default values will declare the default value at the be
280328---
281329
282330
331+
332+
283333### Syntax
284334``` PowerShell
285335Inherit [-Command] <String> [-Abstract] [-Override] [-Dynamic] [-Proxy] [-CommandType <String[]>] [-ExcludeBlockType <String[]>] [-IncludeBlockType <String[]>] [-IncludeParameter <String[]>] [-ExcludeParameter <String[]>] [-ScriptBlock <ScriptBlock>] [<CommonParameters>]
0 commit comments