Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

TempItems - Clear CallStack #649

Open
FriedrichWeinmann opened this issue Nov 29, 2024 · 0 comments
Open

TempItems - Clear CallStack #649

FriedrichWeinmann opened this issue Nov 29, 2024 · 0 comments

Comments

@FriedrichWeinmann
Copy link
Member

When creating a temp item, the module could record the current callstack
Remove-PSFTempItem could then go ahead and clear all items that were created at or below the current callstack parent (e.g. in the same function or all child functions).

This could be used to simply ensure top-level scope cleanup on failure or script-end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant