Skip to content

Commit 0a34586

Browse files
StartAutomatingStartAutomating
authored andcommitted
Core Inline Transpiler : Adding -LinePattern (fixes #197)
1 parent d3ffbb7 commit 0a34586

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/PipeScript.Inline.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,21 @@ An argument list.
138138
|------------------|--------|-------|-------------|
139139
|```[PSObject[]]```|false |11 |false |
140140
---
141+
#### **LinePattern**
142+
143+
Some languages only allow single-line comments.
144+
To work with these languages, provide a -LinePattern indicating what makes a comment
145+
Only lines beginning with this pattern within -StartPattern and -EndPattern will be considered a script.
146+
147+
148+
149+
|Type |Requried|Postion|PipelineInput|
150+
|-------------|--------|-------|-------------|
151+
|```[Regex]```|false |12 |false |
152+
---
141153
### Syntax
142154
```PowerShell
143-
PipeScript.Inline [-SourceText] <String> [[-ReplacePattern] <Regex>] [[-StartPattern] <Regex>] [[-EndPattern] <Regex>] [[-ReplacementEvaluator] <ScriptBlock>] [-NoTranspile] [[-SourceFile] <String>] [[-Begin] <ScriptBlock>] [[-ForeachObject] <ScriptBlock>] [[-End] <ScriptBlock>] [[-Parameter] <IDictionary>] [[-ArgumentList] <PSObject[]>] [<CommonParameters>]
155+
PipeScript.Inline [-SourceText] <String> [[-ReplacePattern] <Regex>] [[-StartPattern] <Regex>] [[-EndPattern] <Regex>] [[-ReplacementEvaluator] <ScriptBlock>] [-NoTranspile] [[-SourceFile] <String>] [[-Begin] <ScriptBlock>] [[-ForeachObject] <ScriptBlock>] [[-End] <ScriptBlock>] [[-Parameter] <IDictionary>] [[-ArgumentList] <PSObject[]>] [[-LinePattern] <Regex>] [<CommonParameters>]
144156
```
145157
---
146158

0 commit comments

Comments
 (0)