@@ -44,6 +44,13 @@ Includes Files or Functions into a Script.
44
44
} | .>PipeScript
45
45
```
46
46
47
+ #### EXAMPLE 4
48
+ ``` PowerShell
49
+ {
50
+ [Include('https://pssvg.start-automating.com/Examples/PowerShellChevron.svg')]$PSChevron
51
+ } | .>PipeScript
52
+ ```
53
+
47
54
48
55
49
56
---
@@ -59,9 +66,9 @@ The File Path to Include
59
66
60
67
61
68
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 |
65
72
66
73
67
74
@@ -112,6 +119,12 @@ The exclusion pattern to use.
112
119
113
120
#### ** VariableAst**
114
121
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
+
115
128
116
129
117
130
@@ -123,6 +136,11 @@ The exclusion pattern to use.
123
136
124
137
#### ** CommandAst**
125
138
139
+ The CommandAST.
140
+ This is provided by the transpiler when include is used as a keyword.
141
+
142
+
143
+
126
144
127
145
128
146
@@ -139,8 +157,8 @@ The exclusion pattern to use.
139
157
140
158
### Syntax
141
159
``` PowerShell
142
- Include [-FilePath] <String> [-AsByte] [-Passthru] [-Exclude <String[]>] -VariableAst <VariableExpressionAst > [<CommonParameters>]
160
+ Include [[ -FilePath] <String>] [-AsByte] [-Passthru] [-Exclude <String[]>] -CommandAst <CommandAst > [<CommonParameters>]
143
161
```
144
162
``` PowerShell
145
- Include [-FilePath] <String> [-AsByte] [-Passthru] [-Exclude <String[]>] -CommandAst <CommandAst > [<CommonParameters>]
163
+ Include [-FilePath] <String> [-AsByte] [-Passthru] [-Exclude <String[]>] -VariableAst <VariableExpressionAst > [<CommonParameters>]
146
164
```
0 commit comments