File tree Expand file tree Collapse file tree 1 file changed +81
-0
lines changed
Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments