PowerShell/test/powershell/Modules
Steve Lee 89db7505d6 Have console host not enter command prompt mode when using Read-Host -Prompt (#9743)
`Read-Host` calls into `$Host.UI.Prompt()`.  However, this method is also used when the host prompts for mandatory parameters that aren't provided.  The method expects to be called when given a `FieldDescription` and if the input starts with `!` it enters `CommandPromptMode`.  In this mode, you can type `!?` to request help, for example.  However this mode is not something you can use via `Read-Host` (only if calling `$Host.UI.Prompt()` directly passing in a well constructed `FieldDescription`).  When using `Read-Host -Prompt`, the cmdlet creates a `FieldDescription` where the name is the prompt and the rest of the properties are empty.

The fix is that if `Label` is empty, we can assume it's being called from `Read-Host` rather than being called to prompt for a mandatory parameter and thus not enter `CommandPromptMode`.
2019-06-09 07:55:11 -07:00
..
CimCmdlets
Microsoft.PowerShell.Core Port PowerShell to .NET Core 3.0 (#9597) 2019-05-21 13:43:51 +08:00
Microsoft.PowerShell.Diagnostics Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
Microsoft.Powershell.Host Update tests to account for when $PSHOME is readonly (#9279) 2019-04-04 23:01:01 -07:00
Microsoft.PowerShell.LocalAccounts
Microsoft.PowerShell.Management Fix Get-ChildItem -Path with wildcard char (#9257) 2019-05-31 10:14:39 -07:00
Microsoft.PowerShell.Security Disable the debugger when in system lock-down mode (#9645) 2019-05-22 15:19:23 -07:00
Microsoft.PowerShell.Utility Have console host not enter command prompt mode when using Read-Host -Prompt (#9743) 2019-06-09 07:55:11 -07:00
Microsoft.WSMan.Management Add ItemSeparator and AltItemSeparator properties in ProviderInfo (#8587) 2019-04-02 09:59:36 -07:00
PackageManagement Use https in URLs where available (#8622) 2019-01-24 12:50:11 -08:00
PowerShellGet Added RequireSudoOnUnix tags to PowerShellGet tests and unmark as pending (#8954) 2019-03-05 11:55:20 -08:00
PSDesiredStateConfiguration Support DSC compilation on Linux. (#9834) 2019-06-07 11:50:14 -07:00
PSDiagnostics Adding tests for PSDiagnostics Module (#8431) 2019-01-16 14:59:35 -08:00
PSReadLine Update tests to account for when $PSHOME is readonly (#9279) 2019-04-04 23:01:01 -07:00
ThreadJob Regularize redirection operator spacing in *.ps1 and *.ps1m (#8581) 2019-01-03 12:59:14 +05:00