Skip to content

Add opt-in diagnostic streams to Write-Color - #25

Merged
PrzemyslawKlys merged 1 commit into
masterfrom
feature/message-streams
Oct 5, 2026
Merged

PrzemyslawKlys merged 1 commit into
masterfrom
feature/message-streams

Conversation

@PrzemyslawKlys

@PrzemyslawKlys PrzemyslawKlys commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Adds opt-in diagnostic streams to Write-Color so automation can capture complete messages without mixing log text into returned objects.

  • -OutputStream Host preserves existing colored output and remains the default.
  • Verbose and Information emit one joined record per call and respect PowerShell preferences. File logging remains independent.
  • Includes generated help, usage examples, and PSWriteColor 1.0.5 metadata.
Write-Color 'Processing ', '25', ' contacts' -OutputStream Verbose -Verbose

This owns the shared behavior needed by O365Synchronizer issue #52. O365Synchronizer #53 is the only consumer being migrated. Publish PSWriteColor 1.0.5 before releasing its dependent change; an Azure Automation job must also enable verbose logging.

Validation: all 41 tests pass on Windows PowerShell 5.1 and PowerShell 7 against both source and the unsigned built artifact. Independent local review and targeted compatibility confirmation found no blocking defects. Live Azure job capture remains unverified. This PR does not publish the package.

@PrzemyslawKlys
PrzemyslawKlys merged commit f799656 into master Oct 5, 2026
3 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the feature/message-streams branch October 5, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant