Skip to content

Commit 5557e42

Browse files
StartAutomatingStartAutomating
authored andcommitted
Updating Get-PipeScript.md [skip ci]
1 parent 7355048 commit 5557e42

File tree

1 file changed

+275
-0
lines changed

1 file changed

+275
-0
lines changed

docs/Get-PipeScript.md

Lines changed: 275 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,275 @@
1+
2+
Get-PipeScript
3+
--------------
4+
### Synopsis
5+
Gets Extensions
6+
7+
---
8+
### Description
9+
10+
Gets Extensions.
11+
12+
PipeScript can be found in:
13+
14+
* Any module that includes -PipeScriptModuleName in it's tags.
15+
* The directory specified in -PipeScriptPath
16+
17+
---
18+
### Examples
19+
#### EXAMPLE 1
20+
```PowerShell
21+
Get-PipeScript
22+
```
23+
24+
---
25+
### Parameters
26+
#### **PipeScriptPath**
27+
28+
If provided, will look beneath a specific path for extensions.
29+
30+
31+
32+
|Type |Requried|Postion|PipelineInput |
33+
|--------------|--------|-------|---------------------|
34+
|```[String]```|false |1 |true (ByPropertyName)|
35+
---
36+
#### **Force**
37+
38+
If set, will clear caches of extensions, forcing a refresh.
39+
40+
41+
42+
|Type |Requried|Postion|PipelineInput|
43+
|--------------|--------|-------|-------------|
44+
|```[Switch]```|false |named |false |
45+
---
46+
#### **CommandName**
47+
48+
If provided, will get PipeScript that extend a given command
49+
50+
51+
52+
|Type |Requried|Postion|PipelineInput |
53+
|----------------|--------|-------|---------------------|
54+
|```[String[]]```|false |2 |true (ByPropertyName)|
55+
---
56+
#### **PipeScriptName**
57+
58+
The name of an extension
59+
60+
61+
62+
|Type |Requried|Postion|PipelineInput |
63+
|----------------|--------|-------|---------------------|
64+
|```[String[]]```|false |3 |true (ByPropertyName)|
65+
---
66+
#### **Like**
67+
68+
If provided, will treat -PipeScriptName as a wildcard.
69+
70+
71+
72+
|Type |Requried|Postion|PipelineInput |
73+
|--------------|--------|-------|---------------------|
74+
|```[Switch]```|false |named |true (ByPropertyName)|
75+
---
76+
#### **Match**
77+
78+
If provided, will treat -PipeScriptName as a regular expression.
79+
80+
81+
82+
|Type |Requried|Postion|PipelineInput |
83+
|--------------|--------|-------|---------------------|
84+
|```[Switch]```|false |named |true (ByPropertyName)|
85+
---
86+
#### **DynamicParameter**
87+
88+
If set, will return the dynamic parameters object of all the PipeScript for a given command.
89+
90+
91+
92+
|Type |Requried|Postion|PipelineInput |
93+
|--------------|--------|-------|---------------------|
94+
|```[Switch]```|false |named |true (ByPropertyName)|
95+
---
96+
#### **CouldRun**
97+
98+
If set, will return if the extension could run.
99+
100+
101+
102+
|Type |Requried|Postion|PipelineInput |
103+
|--------------|--------|-------|---------------------|
104+
|```[Switch]```|false |named |true (ByPropertyName)|
105+
---
106+
#### **CouldPipe**
107+
108+
If set, will return if the extension could accept this input from the pipeline.
109+
110+
111+
112+
|Type |Requried|Postion|PipelineInput|
113+
|----------------|--------|-------|-------------|
114+
|```[PSObject]```|false |4 |false |
115+
---
116+
#### **Run**
117+
118+
If set, will run the extension. If -Stream is passed, results will be directly returned.
119+
By default, extension results are wrapped in a return object.
120+
121+
122+
123+
|Type |Requried|Postion|PipelineInput |
124+
|--------------|--------|-------|---------------------|
125+
|```[Switch]```|false |named |true (ByPropertyName)|
126+
---
127+
#### **Stream**
128+
129+
If set, will stream output from running the extension.
130+
By default, extension results are wrapped in a return object.
131+
132+
133+
134+
|Type |Requried|Postion|PipelineInput |
135+
|--------------|--------|-------|---------------------|
136+
|```[Switch]```|false |named |true (ByPropertyName)|
137+
---
138+
#### **DynamicParameterSetName**
139+
140+
If set, will return the dynamic parameters of all PipeScript for a given command, using the provided DynamicParameterSetName.
141+
Implies -DynamicParameter.
142+
143+
144+
145+
|Type |Requried|Postion|PipelineInput |
146+
|--------------|--------|-------|---------------------|
147+
|```[String]```|false |5 |true (ByPropertyName)|
148+
---
149+
#### **DynamicParameterPositionOffset**
150+
151+
If provided, will return the dynamic parameters of all PipeScript for a given command, with all positional parameters offset.
152+
Implies -DynamicParameter.
153+
154+
155+
156+
|Type |Requried|Postion|PipelineInput |
157+
|-------------|--------|-------|---------------------|
158+
|```[Int32]```|false |6 |true (ByPropertyName)|
159+
---
160+
#### **NoMandatoryDynamicParameter**
161+
162+
If set, will return the dynamic parameters of all PipeScript for a given command, with all mandatory parameters marked as optional.
163+
Implies -DynamicParameter. Does not actually prevent the parameter from being Mandatory on the Extension.
164+
165+
166+
167+
|Type |Requried|Postion|PipelineInput |
168+
|--------------|--------|-------|---------------------|
169+
|```[Switch]```|false |named |true (ByPropertyName)|
170+
---
171+
#### **ValidateInput**
172+
173+
If set, will validate this input against [ValidateScript], [ValidatePattern], [ValidateSet], and [ValidateRange] attributes found on an extension.
174+
175+
176+
177+
|Type |Requried|Postion|PipelineInput |
178+
|----------------|--------|-------|---------------------|
179+
|```[PSObject]```|false |7 |true (ByPropertyName)|
180+
---
181+
#### **AllValid**
182+
183+
If set, will validate this input against all [ValidateScript], [ValidatePattern], [ValidateSet], and [ValidateRange] attributes found on an extension.
184+
By default, if any validation attribute returned true, the extension is considered validated.
185+
186+
187+
188+
|Type |Requried|Postion|PipelineInput|
189+
|--------------|--------|-------|-------------|
190+
|```[Switch]```|false |named |false |
191+
---
192+
#### **ParameterSetName**
193+
194+
The name of the parameter set. This is used by -CouldRun and -Run to enforce a single specific parameter set.
195+
196+
197+
198+
|Type |Requried|Postion|PipelineInput |
199+
|--------------|--------|-------|---------------------|
200+
|```[String]```|false |8 |true (ByPropertyName)|
201+
---
202+
#### **Parameter**
203+
204+
The parameters to the extension. Only used when determining if the extension -CouldRun.
205+
206+
207+
208+
|Type |Requried|Postion|PipelineInput |
209+
|-------------------|--------|-------|---------------------|
210+
|```[IDictionary]```|false |9 |true (ByPropertyName)|
211+
---
212+
#### **SteppablePipeline**
213+
214+
If set, will output a steppable pipeline for the extension.
215+
Steppable pipelines allow you to control how begin, process, and end are executed in an extension.
216+
This allows for the execution of more than one extension at a time.
217+
218+
219+
220+
|Type |Requried|Postion|PipelineInput|
221+
|--------------|--------|-------|-------------|
222+
|```[Switch]```|false |named |false |
223+
---
224+
#### **Help**
225+
226+
If set, will output the help for the extensions
227+
228+
229+
230+
|Type |Requried|Postion|PipelineInput|
231+
|--------------|--------|-------|-------------|
232+
|```[Switch]```|false |named |false |
233+
---
234+
#### **ParameterHelp**
235+
236+
If set, will get help about one or more parameters of an extension
237+
238+
239+
240+
|Type |Requried|Postion|PipelineInput|
241+
|----------------|--------|-------|-------------|
242+
|```[String[]]```|false |10 |false |
243+
---
244+
#### **Example**
245+
246+
If set, will get help examples
247+
248+
249+
250+
|Type |Requried|Postion|PipelineInput|
251+
|--------------|--------|-------|-------------|
252+
|```[Switch]```|false |named |false |
253+
---
254+
#### **FullHelp**
255+
256+
If set, will output the full help for the extensions
257+
258+
259+
260+
|Type |Requried|Postion|PipelineInput|
261+
|--------------|--------|-------|-------------|
262+
|```[Switch]```|false |named |false |
263+
---
264+
### Outputs
265+
Extension
266+
267+
268+
---
269+
### Syntax
270+
```PowerShell
271+
Get-PipeScript [[-PipeScriptPath] <String>] [-Force] [[-CommandName] <String[]>] [[-PipeScriptName] <String[]>] [-Like] [-Match] [-DynamicParameter] [-CouldRun] [[-CouldPipe] <PSObject>] [-Run] [-Stream] [[-DynamicParameterSetName] <String>] [[-DynamicParameterPositionOffset] <Int32>] [-NoMandatoryDynamicParameter] [[-ValidateInput] <PSObject>] [-AllValid] [[-ParameterSetName] <String>] [[-Parameter] <IDictionary>] [-SteppablePipeline] [-Help] [[-ParameterHelp] <String[]>] [-Example] [-FullHelp] [<CommonParameters>]
272+
```
273+
---
274+
275+

0 commit comments

Comments
 (0)