Skip to content

Error in implementation of SupportsShouldProcess #433

@JensGJ

Description

@JensGJ

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions