microsoftgraph / microsoftgraph/msgraph-tools-migration

Use `Write-Debug` instead of `Write-Host` to avoid polluting the output stream

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1
Forks
5
PR merge metrics
No merged PRs in 30d

Description

        if ($Result.Count -gt 0) {
            Write-Host -ForegroundColor Green "--------- Your script(s) contains commands that need to conform to the naming convention as per the 'New' column on the table below ---------"
            Write-Output $Result | Format-Table
        }
        if($WriteToFile){
            Write-Host -ForegroundColor Blue "Your updated script is on this path: $UpdatedFile" 
        }

Reference: https://github.com/microsoftgraph/msgraph-tools-migration/blob/34693fc8fd2414055c16c7cc34091a778615b851/Microsoft.Graph.Migration.Tool.psm1#L143C13-L147

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Microsoft.Graph.Migration.Tool.psm1 at the referenced lines around 143-147 and review how the two Write-Host calls affect the output stream. Replace the diagnostic messages as requested, then verify that command output contains only the intended results while the messages remain available through the debug stream.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.