Skip to content

Commit 8495dc7

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Turtle.Save() ( Fixes #105 )
1 parent 038fb46 commit 8495dc7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Turtle.types.ps1xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,29 @@ $this.Heading += $Angle
949949
return $this
950950
</Script>
951951
</ScriptMethod>
952+
<ScriptMethod>
953+
<Name>Save</Name>
954+
<Script>
955+
&lt;#
956+
.SYNOPSIS
957+
Saves the turtle.
958+
.DESCRIPTION
959+
Saves the current turtle to a file.
960+
.LINK
961+
Save-Turtle
962+
#&gt;
963+
param(
964+
[string]
965+
$FilePath,
966+
967+
[string]
968+
$Property
969+
)
970+
971+
return $this | Save-Turtle $FilePath -Property $Property
972+
973+
</Script>
974+
</ScriptMethod>
952975
<ScriptMethod>
953976
<Name>SierpinskiArrowheadCurve</Name>
954977
<Script>

0 commit comments

Comments
 (0)