Closed
Description
The -Quiet switch in OpenSSHUtils.psm1 appear to be functioning in ways that mimic the standard "Confirm" switch of PowerShell (example:
Win32-OpenSSH/contrib/win32/openssh/OpenSSHUtils.psm1
Lines 184 to 195 in 2c3a1a9
The standard way is to use "SupportsShouldProcess" in the CMDLET binding
However, I personally do not like the degraded readability and what seems like some counter-intuitive logic in my code when I put the actual code changes to support "SupportsShouldProcess".
In this case I would probably cheat and just add a parameter "Confirm". Also this approach would be able to retain your timeout - which I like and I believe is NOT part of standard ShouldProcess support.