From 83633b78c9085d51dacc1d019feafaed8c11ae2b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Fri, 8 Mar 2024 12:37:20 -0800 Subject: [PATCH 1/5] fix: EZOut Mount Tolerance ( Fixes #209 ) --- EZOut.psm1 | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/EZOut.psm1 b/EZOut.psm1 index 4f3f273..a0ca4db 100644 --- a/EZOut.psm1 +++ b/EZOut.psm1 @@ -54,22 +54,19 @@ $executionContext.SessionState.PSVariable.Set( ) Export-ModuleMember -Function * -Alias * -Variable $myModule.Name -$newPSDrive = $ExecutionContext.SessionState.InvokeCommand.GetCommand('New-PSDrive', 'Cmdlet') -if ($newPSDrive) { - try { - $newDriveSplat = @{Name = $myModule.Name;Scope = 'Global';PSProvider='FileSystem'} - $newDriveSplat.Root = $myModule | Split-Path - & $newPSDrive @newDriveSplat - } catch { - Write-Verbose "$_" - } + +try { + $newDriveSplat = @{Name = $myModule.Name;Scope = 'Global';PSProvider='FileSystem';ErrorAction='Ignore'} + $newDriveSplat.Root = $myModule | Split-Path + New-PSDrive @newDriveSplat +} catch { + Write-Verbose "$_" } $myModule.OnRemove = { $myModule = Get-Module EZOut $debuggingTypeNames = $myModule.DebuggingTypeNames - if ($debuggingTypeNames) { - + if ($debuggingTypeNames) { foreach ($typeName in $debuggingTypeNames | Select-Object -Unique) { try { Remove-TypeData -TypeName $typeName -Confirm:$false -ErrorAction Ignore @@ -79,13 +76,5 @@ $myModule.OnRemove = { } } Clear-FormatData - Clear-TypeData - $removePSDrive = $ExecutionContext.SessionState.InvokeCommand.GetCommand('Remove-PSDrive', 'Cmdlet') - if ($removePSDrive) { - try { - & $removePSDrive -Name $myModule.Name -Confirm:$false - } catch { - Write-Debug "$_" - } - } + Clear-TypeData } \ No newline at end of file From 4914979648df3e51ce94c58d3166fa6f9d61c399 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Fri, 8 Mar 2024 12:39:07 -0800 Subject: [PATCH 2/5] fix: EZOut StrictMode Tolerance ( Fixes #210 ) --- Commands/Format.PS1XML/Write-FormatListView.ps1 | 8 ++++++-- Commands/Format.PS1XML/Write-FormatTableView.ps1 | 8 ++++++-- Commands/Format.PS1XML/Write-FormatViewExpression.ps1 | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Commands/Format.PS1XML/Write-FormatListView.ps1 b/Commands/Format.PS1XML/Write-FormatListView.ps1 index efba1d0..1e9f1fd 100644 --- a/Commands/Format.PS1XML/Write-FormatListView.ps1 +++ b/Commands/Format.PS1XML/Write-FormatListView.ps1 @@ -158,8 +158,12 @@ elseif ($styleProp -match '\.') { $targetObject = $psStyle foreach ($dotProperty in $styleProp -split '(? Date: Fri, 8 Mar 2024 14:50:14 -0800 Subject: [PATCH 3/5] release: EZOut 2.0.5 Updating Module Version and Changelog --- EZOut.psd1 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/EZOut.psd1 b/EZOut.psd1 index b87d820..d750757 100644 --- a/EZOut.psd1 +++ b/EZOut.psd1 @@ -1,6 +1,6 @@ @{ ModuleToProcess = 'EZOut.psm1' - ModuleVersion = '2.0.4' + ModuleVersion = '2.0.5' GUID = 'cef786f0-8a0b-4a5d-a2c6-b433095354cd' Author = 'James Brundage' CompanyName = 'Start-Automating' @@ -69,12 +69,10 @@ Tags = '.ps1xml', 'Format','Output','Types', 'Colorized' ReleaseNotes = @' -## EZOut 2.0.4: +## EZOut 2.0.5: -* Write-FormatViewExpression/Write-FormatCustomView now support -Frame, -LeftIndent, -RightIndent, -FirstLineHanging, -FirstLineIndent ( Fixes #164 ) -* Push-FormatData/Push-TypeData now create unique files per-process (Fixes #205 ) - -Thanks @NinMonkey ! +* Improving Strict mode Tolerance (#210) +* Removing Mount error on multiple imports (#209) --- From 388a48f51c035a2c2895ff304e74911f0afb20cb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Fri, 8 Mar 2024 22:51:36 +0000 Subject: [PATCH 4/5] release: EZOut 2.0.5 Updating Module Version and Changelog --- EZOut.format.ps1xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EZOut.format.ps1xml b/EZOut.format.ps1xml index 8b41b68..22ef40d 100644 --- a/EZOut.format.ps1xml +++ b/EZOut.format.ps1xml @@ -1,4 +1,4 @@ - + From 15bca204a5b2947561ae27180cc99f69e731b22c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Fri, 8 Mar 2024 22:51:37 +0000 Subject: [PATCH 5/5] release: EZOut 2.0.5 Updating Module Version and Changelog --- EZOut.types.ps1xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EZOut.types.ps1xml b/EZOut.types.ps1xml index d8ba1f4..8dab855 100644 --- a/EZOut.types.ps1xml +++ b/EZOut.types.ps1xml @@ -1,4 +1,4 @@ - + EZOut.Invisible