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

Error in implementation of SupportsShouldProcess #433

Open
JensGJ opened this issue Feb 22, 2024 · 0 comments
Open

Error in implementation of SupportsShouldProcess #433

JensGJ opened this issue Feb 22, 2024 · 0 comments

Comments

@JensGJ
Copy link

JensGJ commented Feb 22, 2024

Invoke-Plaster does not implement the parameters -WhatIf and -Confirm correctly. If I run the cmdlet with WhatIf I end up with an error (the WhatIf preference is transferred correctly to New-Item so the target directory is not created - but the function still tries to continue by entering the directory that is not created.

image

Similarly if I call Invoke-Plaster with -Confirm and answer no to some of the prompts, I end up with an error since the function is not handling the option that the user has declined one or more actions.

I've tested the behaviour in PowerShell Core (7.4.1) with version 1.1.4 of Plaster.

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

No branches or pull requests

1 participant