You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iRon7, wouldn't the implementation of #19827 facilitate this use case, at least with the default formatting? (And, as stated in the linked issue, instead of -Console you can already use -FilePath ($IsWindows ? '\\.\CON': '/dev/tty'))
# Print the file-info objects to the terminal while also passing them through to the pipeline.Get-ChildItem .\ -Include *.jpg |Tee-Object-Console |Remove-Item-Force -Recurse -WhatIf
For other formatting and possibly other data processing, Dominik Kowalski (@dkaszews)' yet-to-be-fully-fleshed-out Tee-Object -Process { ... } proposal could help:
wouldn't the implementation of #19827 facilitate this use case
That is correct for Write-Host (which currently only writes to the information stream/host). The differents is indeed in the "for other formatting and possibly other data processing" where Dominik Kowalski (@dkaszews)' yet-to-be-fully-fleshed-out Tee-Object -Process { ... } proposal would involve a complete new pipeline with the overhead of all (Begin, End) processing blocks. which is IMO not always necessarily in the #20133 purpose.
Activity
[-]Add `Out-*` proxy for each `Format-*` cmdlet[/-][+]Add `Write-*` proxy for each `Format-*` cmdlet[/+]iRon7 commentedon Jul 20, 2023
Write-* prototype generator
... | Remove-Item -Confirm(probably because the infamous 300-millisecond delay)
mklement0 commentedon Aug 16, 2023
iRon7, wouldn't the implementation of #19827 facilitate this use case, at least with the default formatting? (And, as stated in the linked issue, instead of
-Consoleyou can already use-FilePath ($IsWindows ? '\\.\CON': '/dev/tty'))For other formatting and possibly other data processing, Dominik Kowalski (@dkaszews)' yet-to-be-fully-fleshed-out
Tee-Object -Process { ... }proposal could help:-PassThruas common parameter #19989 (comment)iRon7 commentedon Aug 17, 2023
Michael Klement (@mklement0),
That is correct for
Write-Host(which currently only writes to the information stream/host). The differents is indeed in the "for other formatting and possibly other data processing" where Dominik Kowalski (@dkaszews)' yet-to-be-fully-fleshed-outTee-Object -Process { ... }proposal would involve a complete new pipeline with the overhead of all (Begin,End) processing blocks. which is IMO not always necessarily in the #20133 purpose.iRon7 commentedon Aug 18, 2023
I have closed this purpose as it is now covered by the #20133 a common
-Teeparameter purpose.Wishful thinking: