File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
## ???
4
4
5
5
- New: Convert-PSMDMessage - Converts a file's use of PSFramework messages to strings.
6
+ - Upd: Export-PSMDString - Adding support for Test-PSFShouldProcess.
6
7
- Fix: Export-PSMDString - Failed with splatting detection
7
8
8
9
## 2.2.8.104 (July 26th, 2020)
Original file line number Diff line number Diff line change 125
125
126
126
$commandAsts = $ast.FindAll ({
127
127
if ($args [0 ] -isnot [System.Management.Automation.Language.CommandAst ]) { return $false }
128
- if ($args [0 ].CommandElements[0 ].Value -notmatch ' ^Invoke-PSFProtectedCommand$|^Write-PSFMessage$|^Stop-PSFFunction$' ) { return $false }
128
+ if ($args [0 ].CommandElements[0 ].Value -notmatch ' ^Invoke-PSFProtectedCommand$|^Write-PSFMessage$|^Stop-PSFFunction$|^Test-PSFShouldProcess$ ' ) { return $false }
129
129
if (-not ($args [0 ].CommandElements.ParameterName -match ' ^Message$|^Action$' )) { return $false }
130
130
$true
131
131
}, $true )
Original file line number Diff line number Diff line change 48
48
# region Command Parameters
49
49
$commandAsts = $ast.FindAll ({
50
50
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 }
52
52
if (-not ($args [0 ].CommandElements.ParameterName -match ' ^String$|^ActionString$' )) { return $false }
53
53
$true
54
54
}, $true )
79
79
$splattedVariables = $ast.FindAll ({
80
80
if ($args [0 ] -isnot [System.Management.Automation.Language.VariableExpressionAst ]) { return $false }
81
81
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 } }
83
83
catch { return $false }
84
84
$true
85
85
}, $true )
You can’t perform that action at this time.
0 commit comments