Skip to content

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

Closed
Kirk Munro (KirkMunro) wants to merge 2 commits into
PowerShell:masterfrom
KirkMunro:scriptblock-action-preference
Closed

Support ScriptBlocks in -*Action common parameters and *Preference variables to process errors and messages#219
Kirk Munro (KirkMunro) wants to merge 2 commits into
PowerShell:masterfrom
KirkMunro:scriptblock-action-preference

Conversation

@KirkMunro

Copy link
Copy Markdown
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
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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