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

Fix Issue #104 added ShouldProcess Arguments #107

Merged
merged 2 commits into from
Mar 17, 2024

Conversation

andrew-hoggins
Copy link
Collaborator

@andrew-hoggins andrew-hoggins commented Jan 3, 2024

Fix for Issue #104
Located functions missing $pscmdlet.ShouldProcess arguments.
Added some basic arguments so that -whatif and -confirm trigger description rather that executing command.

Current code

if ($pscmdlet.ShouldProcess) {

Proposed code

if ($pscmdlet.ShouldProcess($User, 'Update')) {

@JosephMcEvoy JosephMcEvoy merged commit da33b3d into JosephMcEvoy:master Mar 17, 2024
3 checks passed
@andrew-hoggins andrew-hoggins deleted the Fix_Issue_104 branch April 24, 2024 03:28
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

Successfully merging this pull request may close these issues.

2 participants