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

Set module sandbox mode to avoid calls to certain commands #27

Merged
merged 8 commits into from
Jan 10, 2024

Conversation

rulasg
Copy link
Owner

@rulasg rulasg commented Jan 9, 2024

Fixes #26

Allow to disable command alias based on tags to control the commads when running for sample tests and avoid calling the real functions and just allowing mocks alias.


function Update-CommandWithParameter{

Check warning

Code scanning / PSScriptAnalyzer

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

Function 'Update-CommandWithParameter' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
public/InvokeCommandList.ps1 Fixed Show fixed Hide fixed
public/InvokeCommandList.ps1 Fixed Show fixed Hide fixed
public/InvokeCommandList.ps1 Fixed Show fixed Hide fixed
@rulasg rulasg merged commit 0366b85 into main Jan 10, 2024
3 checks passed
@rulasg rulasg deleted the rulasg/issue26 branch January 10, 2024 07:26
@rulasg rulasg linked an issue Jan 18, 2024 that may be closed by this pull request
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.

Set module sandbox mode to avoid calls to certain commands Add tag to commands to allow partial resets
1 participant