We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0183565 commit cba073cCopy full SHA for cba073c
PipeScript.types.ps1xml
@@ -1174,6 +1174,24 @@ else {
1174
"Function"
1175
}
1176
1177
+ </GetScriptBlock>
1178
+ </ScriptProperty>
1179
+ <ScriptProperty>
1180
+ <Name>Template</Name>
1181
+ <GetScriptBlock>
1182
+ $potentialTemplatePaths =
1183
+ @(
1184
+ $this.Source -replace '\.ps1$', '.ps.ps1'
1185
+ $this.Source -replace '\.ps1$', '.ps1.ps1'
1186
+ )
1187
+
1188
+foreach ($potentialTemplatePath in $potentialTemplatePaths ) {
1189
+ if (Test-Path $potentialTemplatePath) {
1190
+ return (Get-PipeScript -PipeScriptPath $potentialTemplatePath)
1191
+ }
1192
+}
1193
1194
1195
</GetScriptBlock>
1196
</ScriptProperty>
1197
</Members>
0 commit comments