Skip to content

Commit 802604e

Browse files
committed
Add GUID parameter for ConvertTo-Script
1 parent 2230545 commit 802604e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/Public/ConvertTo-Script.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ function ConvertTo-Script {
2727
[Parameter(Mandatory)]
2828
[string]$FunctionName,
2929

30+
# The GUID to use as the script GUID
31+
# If not provided a new GUID will be generated
32+
[guid]$Guid = [guid]::NewGuid(),
33+
3034
# The path to the script module to convert
3135
# This is used to find the module manifest,
3236
# But the the script will be saved in the same location

0 commit comments

Comments
 (0)