Skip to content

Add WhatIf support to Excel save and close commands#38

Merged
PrzemyslawKlys merged 1 commit into
masterfrom
add-supportsshouldprocess-support-to-cmdlets
Aug 4, 2025
Merged

Add WhatIf support to Excel save and close commands#38
PrzemyslawKlys merged 1 commit into
masterfrom
add-supportsshouldprocess-support-to-cmdlets

Conversation

@PrzemyslawKlys
Copy link
Copy Markdown
Member

Summary

  • enable ShouldProcess for Save-OfficeExcel and Close-OfficeExcel
  • guard file operations behind ShouldProcess to support -WhatIf
  • test -WhatIf behavior for Excel workbook commands

Testing

  • dotnet build Sources/PSWriteOffice/PSWriteOffice.csproj
  • pwsh PSWriteOffice.Tests.ps1 (fails: The required module 'PSSharedGoods' is not loaded. The term 'Invoke-Pester' is not recognized)

https://chatgpt.com/codex/tasks/task_e_6890d6f785a4832e8c5b1ab4f98bf968

@PrzemyslawKlys PrzemyslawKlys merged commit c035ad2 into master Aug 4, 2025
3 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the add-supportsshouldprocess-support-to-cmdlets branch August 4, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant