Skip to content

Support ScriptBlocks in -*Action common parameters and *Preference variables to process errors and messages #219

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed

Conversation

KirkMunro
Copy link
Contributor

This RFC was originally proposed as part of a collection of RFCs in PR #187. I am separating those RFCs into separate PRs to better adhere to the RFC process.

@SteveL-MSFT
Copy link
Member

@PowerShell/powershell-committee discussed this, we think an alternate solution should be explored leveraging Engine events or introducing a Host event to provide a more generalized solution for the case of executing a script block on a specific event instead of having it attached to cmdlets. Also would need more details and thought on how to handle errors within the action scriptblock.

@SteveL-MSFT SteveL-MSFT closed this Feb 9, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Committee-Reviewed WG-Engine core PowerShell engine, interpreter, and runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants