File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33## 2.2.9.106 (September 10th, 2020)
44
55- New: Convert-PSMDMessage - Converts a file's use of PSFramework messages to strings.
6+ - Upd: Export-PSMDString - Adding support for Test-PSFShouldProcess.
67- Fix: Export-PSMDString - Failed with splatting detection
78
89## 2.2.8.104 (July 26th, 2020)
Original file line number Diff line number Diff line change 127127
128128 $commandAsts = $ast.FindAll ({
129129 if ($args [0 ] -isnot [System.Management.Automation.Language.CommandAst ]) { return $false }
130- if ($args [0 ].CommandElements[0 ].Value -notmatch ' ^Invoke-PSFProtectedCommand$|^Write-PSFMessage$|^Stop-PSFFunction$' ) { return $false }
130+ if ($args [0 ].CommandElements[0 ].Value -notmatch ' ^Invoke-PSFProtectedCommand$|^Write-PSFMessage$|^Stop-PSFFunction$|^Test-PSFShouldProcess$ ' ) { return $false }
131131 if (-not ($args [0 ].CommandElements.ParameterName -match ' ^Message$|^Action$' )) { return $false }
132132 $true
133133 }, $true )
Original file line number Diff line number Diff line change 4848 # region Command Parameters
4949 $commandAsts = $ast.FindAll ({
5050 if ($args [0 ] -isnot [System.Management.Automation.Language.CommandAst ]) { return $false }
51- if ($args [0 ].CommandElements[0 ].Value -notmatch ' ^Invoke-PSFProtectedCommand$|^Write-PSFMessage$|^Stop-PSFFunction$' ) { return $false }
51+ if ($args [0 ].CommandElements[0 ].Value -notmatch ' ^Invoke-PSFProtectedCommand$|^Write-PSFMessage$|^Stop-PSFFunction$|^Test-PSFShouldProcess$ ' ) { return $false }
5252 if (-not ($args [0 ].CommandElements.ParameterName -match ' ^String$|^ActionString$' )) { return $false }
5353 $true
5454 }, $true )
7979 $splattedVariables = $ast.FindAll ({
8080 if ($args [0 ] -isnot [System.Management.Automation.Language.VariableExpressionAst ]) { return $false }
8181 if (-not ($args [0 ].Splatted -eq $true )) { return $false }
82- try { if ($args [0 ].Parent.CommandElements[0 ].Value -notmatch ' ^Invoke-PSFProtectedCommand$|^Write-PSFMessage$|^Stop-PSFFunction$' ) { return $false } }
82+ try { if ($args [0 ].Parent.CommandElements[0 ].Value -notmatch ' ^Invoke-PSFProtectedCommand$|^Write-PSFMessage$|^Stop-PSFFunction$|^Test-PSFShouldProcess$ ' ) { return $false } }
8383 catch { return $false }
8484 $true
8585 }, $true )
You can’t perform that action at this time.
0 commit comments