-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Description
Usage like ig -CustomData @{ pwd = 'a', 'B' } '[pwd]' returns the present working directory because there is an Alias with this name already. Maybe one could use execution like &( get-item function:\pwd) instead to insure we execute the function?
Below is the creation of the function.
NameIT/Public/Invoke-Generate.ps1
Line 122 in 77f80de
| $null = New-Item -Path Function: -Name $key -Value { $CustomData[$MyInvocation.InvocationName] | Get-Random } -Force |
Maybe below is where we could change to use the get-item call reference?
NameIT/Public/Invoke-Generate.ps1
Line 150 in 77f80de
| $generatorExpression = "$fn $arguments" |
Reactions are currently unavailable