Skip to content

fix(pull-sdlc): restore blank-line separators dropped by stream refactor (#194) #196

Description

@MarkMichaelis

The output-stream refactor in #194 / PR #195 dropped two blank-line separators that the original code emitted via Write-Host '':

  1. Before -WhatIf specified; no changes written.
  2. Before Already up to date.

The PR summary claimed the -WhatIf output was byte-identical, but it is not -- the footer is now flush against the planned-ops preview. Observed in a consumer (DbxProvider) running .\Pull-SDLC.ai.ps1 -WhatIf:

    add     README.md.template
-WhatIf specified; no changes written.

Expected (note the blank line):

    add     README.md.template

-WhatIf specified; no changes written.

Fix: restore a separator before each footer using Write-Information '' (same stream as the footer message, so they suppress/redirect together). Do NOT add it to Write-PlannedOpsPreview or the apply path -- the Applied N ops. line correctly had no leading blank line. Add a behavior-first test asserting the separator precedes the -WhatIf footer on the Information stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions