mirror of
https://github.com/silverqx/TinyORM.git
synced 2025-12-21 10:29:36 -06:00
bugfix docs pwsh completion, escaping "
This commit is contained in:
@@ -119,8 +119,8 @@ For the `pwsh` paste the following code to the pwsh profile (works on Linux or W
|
||||
Register-ArgumentCompleter -Native -CommandName tom,tom_testdata -ScriptBlock {
|
||||
param($wordToComplete, $commandAst, $cursorPosition)
|
||||
[Console]::InputEncoding = [Console]::OutputEncoding = $OutputEncoding = [System.Text.Utf8Encoding]::new()
|
||||
$Local:word = $wordToComplete.Replace('"', '""')
|
||||
$Local:ast = $commandAst.ToString().Replace('"', '""')
|
||||
$Local:word = $wordToComplete.Replace('"', '\"')
|
||||
$Local:ast = $commandAst.ToString().Replace('"', '\"')
|
||||
tom complete --word="$Local:word" --commandline="$Local:ast" --position=$cursorPosition | ForEach-Object {
|
||||
$completionText, $listText, $toolTip = $_ -split ';', 3
|
||||
$listText ??= $completionText
|
||||
|
||||
Reference in New Issue
Block a user