Adds Mask Input Parameter to Read-Host - #10908
Conversation
|
@PowerShell/powershell-committee reviewed this and is ok with the proposed switch name and functionality. |
|
Sotiris Nanopoulos (@davinci26) can you resolve the merge conflict? |
|
PoshChan-Bot (@PoshChan) please retry windows and static |
|
Sotiris Nanopoulos (@davinci26), you are not authorized to request a rebuild |
|
Steve Lee (@SteveL-MSFT) FYI I have fixed all merge conflicts. |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
Travis Plunk (@TravisEz13) It seems the PR ready to merge. |
Read-Host
|
Sotiris Nanopoulos (@davinci26) Thanks for your contribution! |
|
🎉 Handy links: |
Co-authored-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
PR Summary
Issue
Adds #10847
Implementation
PSHostUserInterfaceclass with avirtualmethodReadLineMaskedAsString. This method is in betweenReadLineandReadLineAsSecureString.InternalHostUserInterface.csCheck at runtime if the user has provided bothUse parameter sets to make-MaskInputand-AsSecureStringand if so throw an exception.-MaskInputand-AsSecureStringmutually exclusive (this is another application for Parameters Should Support Mutual Exclusion Natively #5175)Happy Hacktoberfest!
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.