Release 0.0.6 with usable GUI diagnostics and capture controls
Windows tests / test-and-build (push) Canceled after 0s
Windows tests / test-and-build (push) Canceled after 0s
This commit is contained in:
1 parent
65f302279d
commit
41bb252214
18 files changed
+81
-37
No files matched your search
@@ -28,6 +28,9 @@ try{
|
||||
$invokerRun=Invoke-MsPrivateGroupPlan -Groups @([pscustomobject]@{Id='Invoker';Label='Captured script invoker';DependsOn=@();Action=$action})
|
||||
Assert-True ($invokerRun.Status-eq'Completed'-and[IO.File]::ReadAllText((Join-Path $ioRoot 'probe.txt'))-eq'nested-module') 'Captured child-script invoker failed across execution-module scope.'
|
||||
$threw=$false;try{& $invoker '..\outside.ps1' @{}|Out-Null}catch{$threw=$true};Assert-True $threw 'Child-script invoker accepted path traversal.'
|
||||
[IO.File]::WriteAllText((Join-Path $ioRoot 'Output.ps1'),'param([string]$Value) [pscustomobject]@{Value=$Value}')
|
||||
$output=& $invoker 'Output.ps1' @{Value='visible-audit'} -PassThru
|
||||
Assert-True ($output.Value-eq'visible-audit') 'GUI script invoker discarded requested output.'
|
||||
|
||||
$writerPath=Join-Path $ioRoot 'captured-writer.json';$writer=New-MsPrivateJsonWriter -Path $writerPath -Depth 4
|
||||
$writerAction=({& $writer ([pscustomobject]@{Value='captured-writer'})}.GetNewClosure())
|
||||
|
||||
Reference in new issue
Block a user