Skip to content
New issue

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

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

Already on GitHub? # to your account

refactor build-scriptblock #24

Merged
merged 1 commit into from
Jan 4, 2024
Merged

refactor build-scriptblock #24

merged 1 commit into from
Jan 4, 2024

Conversation

rulasg
Copy link
Owner

@rulasg rulasg commented Jan 4, 2024

When debugging having the build of the command and the creation of te script block on different functions makes it much easier.

Split in two functions.

}
}

function New-ScriptBlock{

Check warning

Code scanning / PSScriptAnalyzer

Function 'New-ScriptBlock' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning

Function 'New-ScriptBlock' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
@rulasg rulasg merged commit 2fda6f4 into main Jan 4, 2024
3 checks passed
@rulasg rulasg deleted the refactor-build-scriptblock branch January 4, 2024 11:35
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant