diff --git a/src/Modules/PSReadLine/PSReadLine.psd1 b/src/Modules/PSReadLine/PSReadLine.psd1 new file mode 100644 index 000000000..65daec419 --- /dev/null +++ b/src/Modules/PSReadLine/PSReadLine.psd1 @@ -0,0 +1,17 @@ +@{ +RootModule = 'PSReadLine.psm1' +NestedModules = @("Microsoft.PowerShell.PSReadLine.dll") +ModuleVersion = '1.2' +GUID = '5714753b-2afd-4492-a5fd-01d9e2cff8b5' +Author = 'Microsoft Corporation' +CompanyName = 'Microsoft Corporation' +Copyright = '(c) Microsoft Corporation. All rights reserved.' +Description = 'Great command line editing in the PowerShell console host' +PowerShellVersion = '3.0' +DotNetFrameworkVersion = '4.0' +CLRVersion = '4.0' +FunctionsToExport = 'PSConsoleHostReadline' +CmdletsToExport = 'Get-PSReadlineKeyHandler','Set-PSReadlineKeyHandler','Remove-PSReadlineKeyHandler', + 'Get-PSReadlineOption','Set-PSReadlineOption' +HelpInfoURI = 'http://go.microsoft.com/fwlink/?LinkId=528806' +} diff --git a/src/Modules/PSReadLine/PSReadLine.psm1 b/src/Modules/PSReadLine/PSReadLine.psm1 new file mode 100644 index 000000000..4f2bf37fe --- /dev/null +++ b/src/Modules/PSReadLine/PSReadLine.psm1 @@ -0,0 +1,5 @@ +function PSConsoleHostReadline +{ + Microsoft.PowerShell.Core\Set-StrictMode -Off + [Microsoft.PowerShell.PSConsoleReadLine]::ReadLine($host.Runspace, $ExecutionContext) +}