Skip to content

Commit 12ffae0

Browse files
author
James Brundage
committed
Supporting Sponsorship (Fixes #488)
2 parents bd1ad8e + 8f2c4fb commit 12ffae0

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

PipeScript.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
CompanyName = 'Start-Automating'
1111
Copyright = '2022 Start-Automating'
1212
Author = 'James Brundage'
13-
FunctionsToExport = 'Export-Pipescript','Get-PipeScript','Get-Transpiler','Import-PipeScript','Invoke-PipeScript','Join-PipeScript','New-PipeScript','Search-PipeScript','Update-PipeScript','Use-PipeScript','Protocol.HTTP','Protocol.JSONSchema','Protocol.OpenAPI','Protocol.UDP','PipeScript.Automatic.Variable.IsPipedTo','PipeScript.Automatic.Variable.IsPipedFrom','PipeScript.Automatic.Variable.MyCallstack','PipeScript.Automatic.Variable.MySelf','PipeScript.Automatic.Variable.MyParameters','PipeScript.Automatic.Variable.MyCaller','PipeScript.Automatic.Variable.MyCommandAst','Aspect.DynamicParameter','Aspect.ModuleExtensionType','Aspect.ModuleExtensionPattern','Aspect.ModuleExtensionCommand','PipeScript.Optimizer.ConsolidateAspects','PipeScript.PostProcess.InitializeAutomaticVariables','PipeScript.PostProcess.PartialFunction'
13+
FunctionsToExport = 'Export-Pipescript','Get-PipeScript','Get-Transpiler','Import-PipeScript','Invoke-PipeScript','Join-PipeScript','New-PipeScript','Search-PipeScript','Update-PipeScript','Use-PipeScript','PipeScript.Automatic.Variable.IsPipedTo','PipeScript.Automatic.Variable.IsPipedFrom','PipeScript.Automatic.Variable.MyCallstack','PipeScript.Automatic.Variable.MySelf','PipeScript.Automatic.Variable.MyParameters','PipeScript.Automatic.Variable.MyCaller','PipeScript.Automatic.Variable.MyCommandAst','PipeScript.Optimizer.ConsolidateAspects','Protocol.HTTP','Protocol.JSONSchema','Protocol.OpenAPI','Protocol.UDP','Aspect.DynamicParameter','Aspect.ModuleExtensionType','Aspect.ModuleExtensionPattern','Aspect.ModuleExtensionCommand','PipeScript.PostProcess.InitializeAutomaticVariables','PipeScript.PostProcess.PartialFunction'
1414
PrivateData = @{
1515
FunctionTypes = @{
1616
'Partial' = @{

Transpilers/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,15 @@ This directory includes uncategorized or 'common' transpilers.
144144
} | .>PipeScript
145145
~~~
146146

147+
#### Include Example 4
148+
149+
150+
~~~PowerShell
151+
{
152+
[Include('https://pssvg.start-automating.com/Examples/PowerShellChevron.svg')]$PSChevron
153+
} | .>PipeScript
154+
~~~
155+
147156
#### Inherit Example 1
148157

149158

docs/Include.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ Includes Files or Functions into a Script.
4444
} | .>PipeScript
4545
```
4646

47+
#### EXAMPLE 4
48+
```PowerShell
49+
{
50+
[Include('https://pssvg.start-automating.com/Examples/PowerShellChevron.svg')]$PSChevron
51+
} | .>PipeScript
52+
```
53+
4754

4855

4956
---
@@ -59,9 +66,9 @@ The File Path to Include
5966

6067

6168

62-
|Type |Required|Position|PipelineInput|
63-
|----------|--------|--------|-------------|
64-
|`[String]`|true |1 |false |
69+
|Type |Required|Position|PipelineInput|Aliases |
70+
|----------|--------|--------|-------------|------------------------|
71+
|`[String]`|false |1 |false |FullName<br/>Uri<br/>Url|
6572

6673

6774

@@ -112,6 +119,12 @@ The exclusion pattern to use.
112119

113120
#### **VariableAst**
114121

122+
The variable that include will be applied to.
123+
If including files with wildcards, this will be the base path.
124+
Otherwise, this variable will be assigned to the included value.
125+
126+
127+
115128

116129

117130

@@ -123,6 +136,11 @@ The exclusion pattern to use.
123136

124137
#### **CommandAst**
125138

139+
The CommandAST.
140+
This is provided by the transpiler when include is used as a keyword.
141+
142+
143+
126144

127145

128146

@@ -139,8 +157,8 @@ The exclusion pattern to use.
139157

140158
### Syntax
141159
```PowerShell
142-
Include [-FilePath] <String> [-AsByte] [-Passthru] [-Exclude <String[]>] -VariableAst <VariableExpressionAst> [<CommonParameters>]
160+
Include [[-FilePath] <String>] [-AsByte] [-Passthru] [-Exclude <String[]>] -CommandAst <CommandAst> [<CommonParameters>]
143161
```
144162
```PowerShell
145-
Include [-FilePath] <String> [-AsByte] [-Passthru] [-Exclude <String[]>] -CommandAst <CommandAst> [<CommonParameters>]
163+
Include [-FilePath] <String> [-AsByte] [-Passthru] [-Exclude <String[]>] -VariableAst <VariableExpressionAst> [<CommonParameters>]
146164
```

0 commit comments

Comments
 (0)