Skip to content

Commit 398f296

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: OpenPackage.get_Reptile ( Fixes #212 )
1 parent f2f35be commit 398f296

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

OP.types.ps1xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,23 @@ if (-not $this.GetRelationships) {
18801880

18811881
</GetScriptBlock>
18821882
</ScriptProperty>
1883+
<ScriptProperty>
1884+
<Name>Reptile</Name>
1885+
<GetScriptBlock>
1886+
&lt;#
1887+
.SYNOPSIS
1888+
Gets Open Package Reptiles
1889+
.DESCRIPTION
1890+
Gets Reptile files in Open Packages
1891+
.LINK
1892+
https://github.com/PoshWeb/Reptile
1893+
#&gt;
1894+
foreach ($part in $this.GetParts()) {
1895+
if ($part.Uri -notmatch '/\.reptile\.ps1$') { continue }
1896+
$part
1897+
}
1898+
</GetScriptBlock>
1899+
</ScriptProperty>
18831900
<ScriptProperty>
18841901
<Name>Revision</Name>
18851902
<GetScriptBlock>

0 commit comments

Comments
 (0)