Skip to content

Commit 5226ce3

Browse files
StartAutomatingStartAutomating
authored andcommitted
Fixing formatting for Search-PipeScript (#115)
1 parent 44d149f commit 5226ce3

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

docs/Search-PipeScript.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
2+
Search-PipeScript
3+
-----------------
4+
### Synopsis
5+
Searches PowerShell and PipeScript ScriptBlocks
6+
7+
---
8+
### Description
9+
10+
Searches PowerShell and PipeScript ScriptBlocks, files, and text
11+
12+
---
13+
### Related Links
14+
* [Update-PipeScript](Update-PipeScript.md)
15+
---
16+
### Examples
17+
#### EXAMPLE 1
18+
```PowerShell
19+
Search-PipeScript -ScriptBlock {
20+
$a
21+
$b
22+
$c
23+
"text"
24+
} -AstType Variable
25+
```
26+
27+
---
28+
### Parameters
29+
#### **InputObject**
30+
31+
The ScriptBlock that will be searched.
32+
33+
34+
35+
|Type |Requried|Postion|PipelineInput |
36+
|--------------|--------|-------|------------------------------|
37+
|```[Object]```|false |1 |true (ByValue, ByPropertyName)|
38+
---
39+
#### **AstCondition**
40+
41+
The AST Condition.
42+
These Script Blocks
43+
44+
45+
46+
|Type |Requried|Postion|PipelineInput |
47+
|---------------------|--------|-------|---------------------|
48+
|```[ScriptBlock[]]```|false |2 |true (ByPropertyName)|
49+
---
50+
#### **AstType**
51+
52+
A shortname for the abstract syntax tree types.
53+
54+
55+
56+
|Type |Requried|Postion|PipelineInput |
57+
|--------------|--------|-------|---------------------|
58+
|```[Object]```|false |3 |true (ByPropertyName)|
59+
---
60+
#### **RegularExpression**
61+
62+
One or more regular expressions to match.
63+
64+
65+
66+
|Type |Requried|Postion|PipelineInput |
67+
|--------------|--------|-------|---------------------|
68+
|```[Object]```|false |4 |true (ByPropertyName)|
69+
---
70+
### Outputs
71+
Search.PipeScript.Result
72+
73+
74+
---
75+
### Syntax
76+
```PowerShell
77+
Search-PipeScript [[-InputObject] <Object>] [[-AstCondition] <ScriptBlock[]>] [[-AstType] <Object>] [[-RegularExpression] <Object>] [<CommonParameters>]
78+
```
79+
---
80+
81+

0 commit comments

Comments
 (0)